mirror of
https://github.com/tendermint/tendermint.git
synced 2026-05-29 18:40:34 +00:00
tmlibs timer fix
This commit is contained in:
2
glide.lock
generated
2
glide.lock
generated
@@ -131,7 +131,7 @@ imports:
|
||||
subpackages:
|
||||
- iavl
|
||||
- name: github.com/tendermint/tmlibs
|
||||
version: e236218516289f91bde3273e99fe5c1fc20eb304
|
||||
version: 662a886dc20600ce11e1d684a15b83b5813e7277
|
||||
subpackages:
|
||||
- autofile
|
||||
- cli
|
||||
|
||||
@@ -314,11 +314,11 @@ FOR_LOOP:
|
||||
// NOTE: flushTimer.Set() must be called every time
|
||||
// something is written to .bufWriter.
|
||||
c.flush()
|
||||
case <-c.chStatsTimer.Ch:
|
||||
case <-c.chStatsTimer.Chan():
|
||||
for _, channel := range c.channels {
|
||||
channel.updateStats()
|
||||
}
|
||||
case <-c.pingTimer.Ch:
|
||||
case <-c.pingTimer.Chan():
|
||||
c.Logger.Debug("Send Ping")
|
||||
legacy.WriteOctet(packetTypePing, c.bufWriter, &n, &err)
|
||||
c.sendMonitor.Update(int(n))
|
||||
|
||||
Reference in New Issue
Block a user