diff --git a/glide.lock b/glide.lock index c29eea4de..bdddaf58a 100644 --- a/glide.lock +++ b/glide.lock @@ -131,7 +131,7 @@ imports: subpackages: - iavl - name: github.com/tendermint/tmlibs - version: e236218516289f91bde3273e99fe5c1fc20eb304 + version: 662a886dc20600ce11e1d684a15b83b5813e7277 subpackages: - autofile - cli diff --git a/p2p/connection.go b/p2p/connection.go index b0a407229..626aeb10f 100644 --- a/p2p/connection.go +++ b/p2p/connection.go @@ -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))