lotus/storage/pipeline/gen/main.go
2022-09-19 12:13:05 +02:00

22 lines
319 B
Go

package main
import (
"fmt"
"os"
gen "github.com/whyrusleeping/cbor-gen"
sealing "github.com/filecoin-project/lotus/storage/pipeline"
)
func main() {
err := gen.WriteMapEncodersToFile("./cbor_gen.go", "sealing",
sealing.SectorInfo{},
sealing.Log{},
)
if err != nil {
fmt.Println(err)
os.Exit(1)
}
}