Skip to content

Commit e21b0e4

Browse files
committed
revert yamux change
1 parent 188b119 commit e21b0e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libp2p/muxers/yamux/yamux.nim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import sequtils, std/[tables]
1313
import chronos, chronicles, metrics, stew/[endians2, byteutils, objects]
1414
import ../muxer, ../../stream/connection
15-
import ../../utils/future
1615

1716
export muxer
1817

@@ -281,7 +280,7 @@ method readOnce*(
281280
if channel.recvQueue.len == 0:
282281
channel.receivedData.clear()
283282
try: # https://github.com/status-im/nim-chronos/issues/516
284-
discard await raceCancel(@[channel.closedRemotely.wait(), channel.receivedData.wait()])
283+
discard await race(channel.closedRemotely.wait(), channel.receivedData.wait())
285284
except ValueError:
286285
raiseAssert("Futures list is not empty")
287286
if channel.closedRemotely.isSet() and channel.recvQueue.len == 0:

0 commit comments

Comments
 (0)