Skip to content

Commit 2d62003

Browse files
committed
feat(net_crypto): put dht_pk_tx into the lock
1 parent 43dd013 commit 2d62003

File tree

2 files changed

+24
-135
lines changed

2 files changed

+24
-135
lines changed

src/toxcore/dht/server/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2091,7 +2091,6 @@ mod tests {
20912091
let (dht_pk, dht_sk) = gen_keypair();
20922092
let mut alice = Server::new(udp_tx.clone(), dht_pk, dht_sk.clone());
20932093

2094-
let (dht_pk_tx, _dht_pk_rx) = mpsc::unbounded();
20952094
let (lossless_tx, _lossless_rx) = mpsc::unbounded();
20962095
let (lossy_tx, _lossy_rx) = mpsc::unbounded();
20972096
let (real_pk, real_sk) = gen_keypair();
@@ -2100,7 +2099,6 @@ mod tests {
21002099
let precomp = precompute(&alice.pk, &bob_sk);
21012100
let net_crypto = NetCrypto::new(NetCryptoNewArgs {
21022101
udp_tx,
2103-
dht_pk_tx,
21042102
lossless_tx,
21052103
lossy_tx,
21062104
dht_pk,

0 commit comments

Comments
 (0)