Skip to content

Commit

Permalink
protocols/rendezvous: Remove unnecessary mapping to StreamMuxerBox (#…
Browse files Browse the repository at this point in the history
…2668)

Calling `.boxed()` will already map the muxer in a `StreamMuxer` box.
This mapping is therefore unnecessary.
  • Loading branch information
thomaseizinger committed May 29, 2022
1 parent 2b79f11 commit eba7634
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion protocols/rendezvous/tests/harness.rs
Expand Up @@ -57,7 +57,6 @@ where
MplexConfig::new(),
))
.timeout(Duration::from_secs(5))
.map(|(peer, muxer), _| (peer, StreamMuxerBox::new(muxer)))
.boxed();

SwarmBuilder::new(transport, behaviour_fn(peer_id, identity), peer_id)
Expand Down

0 comments on commit eba7634

Please sign in to comment.