aboutsummaryrefslogtreecommitdiffstats
path: root/ethwire
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-09-23 00:15:10 +0800
committerobscuren <geffobscura@gmail.com>2014-09-23 00:15:10 +0800
commit2ae3bda029ec91e02fb164fd53175ad78d45a0ba (patch)
treee19a349d28c1aedbe95e28ef7f836240ef122fb9 /ethwire
parent1bc815e0b1d3fb6f47f8747e607a03f6d8a25ac2 (diff)
downloaddexon-2ae3bda029ec91e02fb164fd53175ad78d45a0ba.tar
dexon-2ae3bda029ec91e02fb164fd53175ad78d45a0ba.tar.gz
dexon-2ae3bda029ec91e02fb164fd53175ad78d45a0ba.tar.bz2
dexon-2ae3bda029ec91e02fb164fd53175ad78d45a0ba.tar.lz
dexon-2ae3bda029ec91e02fb164fd53175ad78d45a0ba.tar.xz
dexon-2ae3bda029ec91e02fb164fd53175ad78d45a0ba.tar.zst
dexon-2ae3bda029ec91e02fb164fd53175ad78d45a0ba.zip
Increased from 200 nano to milliseconds
Diffstat (limited to 'ethwire')
-rw-r--r--ethwire/messaging.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ethwire/messaging.go b/ethwire/messaging.go
index b1cefc0ae..2b3836e9c 100644
--- a/ethwire/messaging.go
+++ b/ethwire/messaging.go
@@ -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
}