Skip to content

Commit

Permalink
stakepooldclient: continue loop on error (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeGruffins authored and dajohi committed Aug 19, 2019
1 parent 4aa7c66 commit 4a76070
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stakepooldclient/stakepooldclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,8 @@ func (s *StakepooldManager) GetStakeInfo() (*pb.GetStakeInfoResponse, error) {
client := pb.NewStakepooldServiceClient(conn)
resp, err := client.GetStakeInfo(context.Background(), &pb.GetStakeInfoRequest{})
if err != nil {
log.Errorf("GetStakeInfo RPC failed on stakepoold instance %s: %v", conn.Target(), err)
log.Warnf("GetStakeInfo RPC failed on stakepoold instance %s: %v", conn.Target(), err)
continue
}
s.cachedStakeInfo = resp
s.cachedStakeInfoTimer = now.Add(cacheTimerStakeInfo)
Expand Down

0 comments on commit 4a76070

Please sign in to comment.