gofmt
This commit is contained in:
parent
4c8b028887
commit
8d529d1ae7
@ -18,4 +18,4 @@ const (
|
|||||||
MajorMask = 0xff0000
|
MajorMask = 0xff0000
|
||||||
MinorMask = 0xffff00
|
MinorMask = 0xffff00
|
||||||
PatchMask = 0xffffff
|
PatchMask = 0xffffff
|
||||||
)
|
)
|
||||||
|
@ -44,7 +44,7 @@ var initCmd = &cli.Command{
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if v.APIVersion & build.MinorMask != build.APIVersion & build.MinorMask {
|
if v.APIVersion&build.MinorMask != build.APIVersion&build.MinorMask {
|
||||||
return xerrors.Errorf("Remote API version didn't match (local %x, remote %x)", build.APIVersion, v.APIVersion)
|
return xerrors.Errorf("Remote API version didn't match (local %x, remote %x)", build.APIVersion, v.APIVersion)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,7 +65,6 @@ var runCmd = &cli.Command{
|
|||||||
|
|
||||||
log.Infof("Remote version %s", v)
|
log.Infof("Remote version %s", v)
|
||||||
|
|
||||||
|
|
||||||
rpcServer := jsonrpc.NewServer()
|
rpcServer := jsonrpc.NewServer()
|
||||||
rpcServer.Register("Filecoin", minerapi)
|
rpcServer.Register("Filecoin", minerapi)
|
||||||
http.Handle("/rpc/v0", rpcServer)
|
http.Handle("/rpc/v0", rpcServer)
|
||||||
|
@ -201,7 +201,6 @@ func Online() Option {
|
|||||||
|
|
||||||
// Storage miner
|
// Storage miner
|
||||||
|
|
||||||
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user