mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-01 00:53:47 +00:00
Increased from 200 nano to milliseconds
This commit is contained in:
parent
1bc815e0b1
commit
2ae3bda029
1 changed files with 2 additions and 1 deletions
|
|
@ -109,9 +109,10 @@ func ReadMessages(conn net.Conn) (msgs []*Msg, err error) {
|
|||
}
|
||||
}
|
||||
|
||||
fmt.Println(n, len(buff))
|
||||
if n == 0 && len(buff) == 0 {
|
||||
// If there's nothing on the wire wait for a bit
|
||||
time.Sleep(200)
|
||||
time.Sleep(200 * time.Millisecond)
|
||||
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue