Browse Source

Merge pull request #857 from gguoss/patch-1

Failed to compile comment code
pull/856/head
Ethan Buchman 7 years ago
committed by GitHub
parent
commit
99461a178e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      p2p/connection.go

+ 1
- 1
p2p/connection.go View File

@ -413,7 +413,7 @@ FOR_LOOP:
// Peek into bufReader for debugging
if numBytes := c.bufReader.Buffered(); numBytes > 0 {
log.Info("Peek connection buffer", "numBytes", numBytes, "bytes", log15.Lazy{func() []byte {
bytes, err := c.bufReader.Peek(MinInt(numBytes, 100))
bytes, err := c.bufReader.Peek(cmn.MinInt(numBytes, 100))
if err == nil {
return bytes
} else {


Loading…
Cancel
Save