fix GetStatus() usage

This commit is contained in:
Jae Kwon
2015-07-13 11:03:31 -07:00
parent f2ccfff18e
commit dea5eab643
2 changed files with 2 additions and 2 deletions

View File

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

View File

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