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…
Reference in New Issue