From 5834ca83c3a001a809c749d398a395ece6232e16 Mon Sep 17 00:00:00 2001 From: Diego Date: Wed, 22 Nov 2023 14:31:24 +0100 Subject: [PATCH] Use transportDir to choose initial stream id --- libp2p/muxers/yamux/yamux.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/muxers/yamux/yamux.nim b/libp2p/muxers/yamux/yamux.nim index 59707ec10..69e58015a 100644 --- a/libp2p/muxers/yamux/yamux.nim +++ b/libp2p/muxers/yamux/yamux.nim @@ -534,6 +534,6 @@ method newStream*( proc new*(T: type[Yamux], conn: Connection, maxChannCount: int = MaxChannelCount): T = T( connection: conn, - currentId: if conn.dir == Out: 1 else: 2, + currentId: if conn.transportDir == Out: 1 else: 2, maxChannCount: maxChannCount )