Commit 3037b667 authored by 董子豪's avatar 董子豪

test

parent e45a8a7b
......@@ -109,8 +109,12 @@ func ParseSectorID(baseName string) (abi.SectorID, error) {
}, nil
}
func SectorName(sid abi.SectorID) string {
return fmt.Sprintf("s-t0%d-%d", sid.Miner, sid.Number)
func SectorName(sid abi.SectorID, numbers ...int32) string {
out := fmt.Sprintf("s-t0%d-%d", sid.Miner, sid.Number)
for _, number := range numbers{
out = fmt.Sprintf("%s-%d", number)
}
return out
}
func PathByType(sps SectorPaths, fileType SectorFileType) string {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment