Skip to content

Commit

Permalink
use insert() methos to add Receiver into array
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime2 committed Aug 13, 2019
1 parent b399fe8 commit 51d3ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generic_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pub fn common_test<
for i in 0..n_peers {
let mut config = C::new(net_addrs[i].clone());
let (tx, rx) = mpsc::channel::<Data>();
ch_r[i] = rx;
ch_r.insert(i, rx);
config.register_channel(tx).unwrap();
pl.add(TestPeer::new(i.into(), net_addrs[i].clone()))
.unwrap();
Expand Down

0 comments on commit 51d3ef4

Please sign in to comment.