aboutsummaryrefslogtreecommitdiff
path: root/src/conn.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-10-12 13:07:34 +0200
committerAlex Auvolat <alex@adnab.me>2021-10-12 13:07:34 +0200
commit7753b789b7aca87db4db7aed20e79a41ecb0b225 (patch)
treef5b67a3d52736eb60d88cdd8772957ada62654fb /src/conn.rs
parent90f8fb28361cba1087a0e608e8a8deb6abb5bd39 (diff)
downloadnetapp-7753b789b7aca87db4db7aed20e79a41ecb0b225.tar.gz
netapp-7753b789b7aca87db4db7aed20e79a41ecb0b225.zip
Upgrade to tokio 1.0
Diffstat (limited to 'src/conn.rs')
-rw-r--r--src/conn.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conn.rs b/src/conn.rs
index daa0235..6c5f38a 100644
--- a/src/conn.rs
+++ b/src/conn.rs
@@ -102,7 +102,7 @@ impl ServerConn {
}
pub fn close(&self) {
- self.close_send.broadcast(true).unwrap();
+ self.close_send.send(true).unwrap();
}
}
@@ -217,7 +217,7 @@ impl ClientConn {
.log_err("could not write None in query_send");
if self.inflight.lock().unwrap().is_empty() {
self.stop_recv_loop
- .broadcast(true)
+ .send(true)
.log_err("could not write true to stop_recv_loop");
}
}
@@ -274,7 +274,7 @@ impl RecvLoop for ClientConn {
if inflight.is_empty() && self.must_exit.load(atomic::Ordering::SeqCst) {
self.stop_recv_loop
- .broadcast(true)
+ .send(true)
.log_err("could not write true to stop_recv_loop");
}
}