Skip to content

Commit eba7634

Browse files
protocols/rendezvous: Remove unnecessary mapping to StreamMuxerBox (#2668)
Calling `.boxed()` will already map the muxer in a `StreamMuxer` box. This mapping is therefore unnecessary.
1 parent 2b79f11 commit eba7634

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

protocols/rendezvous/tests/harness.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ where
5757
MplexConfig::new(),
5858
))
5959
.timeout(Duration::from_secs(5))
60-
.map(|(peer, muxer), _| (peer, StreamMuxerBox::new(muxer)))
6160
.boxed();
6261

6362
SwarmBuilder::new(transport, behaviour_fn(peer_id, identity), peer_id)

0 commit comments

Comments
 (0)