From 048b1db1ad931ff7f6a798f1740a00b6ffc08e55 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Thu, 14 May 2020 22:03:49 -0600 Subject: [PATCH] revert back allread --- libp2p/stream/chronosstream.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libp2p/stream/chronosstream.nim b/libp2p/stream/chronosstream.nim index b3af6b682..c1bca76fb 100644 --- a/libp2p/stream/chronosstream.nim +++ b/libp2p/stream/chronosstream.nim @@ -60,9 +60,9 @@ method write*(s: ChronosStream, msg: seq[byte]) {.async.} = return withExceptions: - var writen = 0 - while (writen < msg.len): - writen += await s.client.write(msg[writen..