diff --git a/libp2p/stream/chronosstream.nim b/libp2p/stream/chronosstream.nim index b3af6b6..c1bca76 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..