2020-08-10 15:40:27 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
gen "github.com/whyrusleeping/cbor-gen"
|
|
|
|
|
2022-06-14 17:41:59 +00:00
|
|
|
sealing "github.com/filecoin-project/lotus/storage/pipeline"
|
2020-08-10 15:40:27 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
err := gen.WriteMapEncodersToFile("./cbor_gen.go", "sealing",
|
|
|
|
sealing.Piece{},
|
|
|
|
sealing.SectorInfo{},
|
|
|
|
sealing.Log{},
|
|
|
|
)
|
|
|
|
if err != nil {
|
|
|
|
fmt.Println(err)
|
|
|
|
os.Exit(1)
|
|
|
|
}
|
|
|
|
}
|