[NOD-1183] Fix rpc server config (#814)

This commit is contained in:
Ori Newman 2020-07-23 10:49:46 +03:00 committed by GitHub
parent 8fdb5aa024
commit c30b350e8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ func newMinerClient(connCfg *client.ConnConfig) (*minerClient, error) {
}
if err = minerClient.NotifyBlocks(); err != nil {
return nil, errors.Errorf("Error while registering minerClient %s for block notifications: %s", minerClient.Host(), err)
return nil, errors.Wrapf(err, "error while registering minerClient %s for block notifications", minerClient.Host())
}
return minerClient, nil
}

View File

@ -707,6 +707,7 @@ func NewRPCServer(
return nil, errors.New("RPCS: No valid listen address")
}
rpc := Server{
cfg: cfg,
listeners: rpcListeners,
startupTime: mstime.Now(),
statusLines: make(map[int]string),