worker: Reconnect correctly

This commit is contained in:
Łukasz Magiera 2020-09-28 13:37:50 +02:00
parent 9e7d6823b1
commit 86cf3c835e

View File

@ -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