Skip to content

Commit

Permalink
revert yamux change
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomrsantos committed Aug 12, 2024
1 parent 188b119 commit a92c1bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libp2p/muxers/yamux/yamux.nim
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ method readOnce*(
if channel.recvQueue.len == 0:
channel.receivedData.clear()
try: # https://github.com/status-im/nim-chronos/issues/516
discard await raceCancel(@[channel.closedRemotely.wait(), channel.receivedData.wait()])
discard await race(channel.closedRemotely.wait(), channel.receivedData.wait())
except ValueError:
raiseAssert("Futures list is not empty")
if channel.closedRemotely.isSet() and channel.recvQueue.len == 0:
Expand Down

0 comments on commit a92c1bd

Please sign in to comment.