mirror of
https://github.com/tendermint/tendermint.git
synced 2026-05-31 19:36:20 +00:00
fix GetStatus() usage
This commit is contained in:
@@ -108,7 +108,7 @@ RUN_LOOP:
|
||||
}
|
||||
}
|
||||
|
||||
func (pool *BlockPool) GetStatus() (int, int32, int32) {
|
||||
func (pool *BlockPool) GetStatus() (height int, numPending int32, numUnssigned int32) {
|
||||
pool.requestsMtx.Lock() // Lock
|
||||
defer pool.requestsMtx.Unlock()
|
||||
|
||||
|
||||
@@ -199,7 +199,7 @@ FOR_LOOP:
|
||||
// ask for status updates
|
||||
go bcR.BroadcastStatusRequest()
|
||||
case _ = <-switchToConsensusTicker.C:
|
||||
height, numUnassigned, numPending := bcR.pool.GetStatus()
|
||||
height, numPending, numUnassigned := bcR.pool.GetStatus()
|
||||
outbound, inbound, _ := bcR.sw.NumPeers()
|
||||
log.Debug("Consensus ticker", "numUnassigned", numUnassigned, "numPending", numPending,
|
||||
"total", len(bcR.pool.requests), "outbound", outbound, "inbound", inbound)
|
||||
|
||||
Reference in New Issue
Block a user