worker: Reconnect correctly
This commit is contained in:
parent
9e7d6823b1
commit
86cf3c835e
@ -172,7 +172,6 @@ var runCmd = &cli.Command{
|
||||
var err error
|
||||
for {
|
||||
nodeApi, closer, err = lcli.GetStorageMinerAPI(cctx,
|
||||
jsonrpc.WithNoReconnect(),
|
||||
jsonrpc.WithTimeout(30*time.Second))
|
||||
if err == nil {
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user