mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-28 20:21:47 +00:00
rpc: log error when we timeout getting validators from consensus (#2045)
This commit is contained in:
committed by
Anton Kaliaev
parent
60378fd7f9
commit
74b6cc9057
@ -166,6 +166,9 @@ func getValidatorsWithTimeout(
|
|||||||
case res := <-resultCh:
|
case res := <-resultCh:
|
||||||
return res.lastBlockHeight, res.vals
|
return res.lastBlockHeight, res.vals
|
||||||
case <-time.After(t):
|
case <-time.After(t):
|
||||||
|
if logger != nil {
|
||||||
|
logger.Error("Timed out querying validators from consensus", "timeout", t)
|
||||||
|
}
|
||||||
return -1, []*types.Validator{}
|
return -1, []*types.Validator{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user