From 8e9716f5c3191a117fd0d13782ae9b8cadc9fe73 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Thu, 14 May 2020 21:52:36 -0600 Subject: [PATCH] remove on transport close cleanup --- libp2p/stream/chronosstream.nim | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libp2p/stream/chronosstream.nim b/libp2p/stream/chronosstream.nim index b9baa19..b3af6b6 100644 --- a/libp2p/stream/chronosstream.nim +++ b/libp2p/stream/chronosstream.nim @@ -16,12 +16,6 @@ logScope: type ChronosStream* = ref object of LPStream client: StreamTransport -proc onTransportClose(s: ChronosStream, - client: StreamTransport) {.async.} = - await client.join() - trace "Transport closed, closing connection" - await s.close() - proc newChronosStream*(client: StreamTransport): ChronosStream = new result result.client = client