mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-02-18 07:46:42 +00:00
Use transportDir to choose initial stream id
This commit is contained in:
parent
3447baa038
commit
5834ca83c3
@ -534,6 +534,6 @@ method newStream*(
|
|||||||
proc new*(T: type[Yamux], conn: Connection, maxChannCount: int = MaxChannelCount): T =
|
proc new*(T: type[Yamux], conn: Connection, maxChannCount: int = MaxChannelCount): T =
|
||||||
T(
|
T(
|
||||||
connection: conn,
|
connection: conn,
|
||||||
currentId: if conn.dir == Out: 1 else: 2,
|
currentId: if conn.transportDir == Out: 1 else: 2,
|
||||||
maxChannCount: maxChannCount
|
maxChannCount: maxChannCount
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user