Track ChronosStream in test (#605)

* track chronos stream in tests

* use chronosstreamtrackername
This commit is contained in:
Tanguy Cizain 2021-07-13 13:53:08 +02:00 committed by GitHub
parent 008dcf7043
commit c1b2d45d1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,7 @@ chronicles.formatIt(ChronosStream): shortLog(it)
method initStream*(s: ChronosStream) =
if s.objName.len == 0:
s.objName = "ChronosStream"
s.objName = ChronosStreamTrackerName
s.timeoutHandler = proc() {.async, gcsafe.} =
trace "Idle timeout expired, closing ChronosStream", s

View File

@ -6,6 +6,7 @@ import ../libp2p/transports/tcptransport
import ../libp2p/stream/bufferstream
import ../libp2p/crypto/crypto
import ../libp2p/stream/lpstream
import ../libp2p/stream/chronosstream
import ../libp2p/muxers/mplex/lpchannel
import ../libp2p/protocols/secure/secure
@ -24,6 +25,7 @@ const
BufferStreamTrackerName,
TcpTransportTrackerName,
StreamTransportTrackerName,
ChronosStreamTrackerName,
StreamServerTrackerName
]