Skip to content

Commit 74ba90d

Browse files
committed
Return () from Waitlist::remove
The returned bool was never used.
1 parent 979db7d commit 74ba90d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/conn/pool/waitlist.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,12 @@ impl Waitlist {
5858
}
5959

6060
/// Returns `true` if removed.
61-
pub(crate) fn remove(&mut self, id: QueueId) -> bool {
62-
let is_removed = self.queue.remove(&id).is_some();
63-
if is_removed {
61+
pub(crate) fn remove(&mut self, id: QueueId) {
62+
if self.queue.remove(&id).is_some() {
6463
self.metrics
6564
.active_wait_requests
6665
.fetch_sub(1, atomic::Ordering::Relaxed);
6766
}
68-
69-
is_removed
7067
}
7168

7269
pub(crate) fn peek_id(&mut self) -> Option<QueueId> {

0 commit comments

Comments
 (0)