From eba763443a3711832bb732455404fd94a887652f Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Sun, 29 May 2022 17:34:26 +0200 Subject: [PATCH] protocols/rendezvous: Remove unnecessary mapping to `StreamMuxerBox` (#2668) Calling `.boxed()` will already map the muxer in a `StreamMuxer` box. This mapping is therefore unnecessary. --- protocols/rendezvous/tests/harness.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/protocols/rendezvous/tests/harness.rs b/protocols/rendezvous/tests/harness.rs index 3602d666c0f..8786d61c2f1 100644 --- a/protocols/rendezvous/tests/harness.rs +++ b/protocols/rendezvous/tests/harness.rs @@ -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)