tmlibs timer fix

This commit is contained in:
Ethan Buchman
2017-12-25 10:25:34 -05:00
parent 1e52751344
commit 14c812a39c
2 changed files with 3 additions and 3 deletions

2
glide.lock generated
View File

@@ -131,7 +131,7 @@ imports:
subpackages:
- iavl
- name: github.com/tendermint/tmlibs
version: e236218516289f91bde3273e99fe5c1fc20eb304
version: 662a886dc20600ce11e1d684a15b83b5813e7277
subpackages:
- autofile
- cli

View File

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