INNER CODE UNIT · Go
main
sealerio/sealer · cmd/dist-receiver/main.go:49
func main() {
bootstrap := flag.String("bootstrap", "", "Specify the bootstrap node")
cidArg := flag.String("cid", "", "Specify the CID")
fileName := flag.String("filename", "", "Specify the name of the file to be distributed")
targetDir := flag.String("target", "", "Specify the target directory")
flag.Parse()
stageNow = 0
sig = make(chan struct{})
server := &http.Server{
Addr: "0.0.0.0:4002",
ReadTimeout: 5 * time.Second,
WriteTimeout: 5 * time.Second,
IdleTimeout: 600 * time.Second,
}