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..