Skip to content

Commit d287c69

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

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/conn/pool/waitlist.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,12 @@ impl Waitlist {
5757
}
5858
}
5959

60-
/// 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 {
60+
pub(crate) fn remove(&mut self, id: QueueId) {
61+
if self.queue.remove(&id).is_some() {
6462
self.metrics
6563
.active_wait_requests
6664
.fetch_sub(1, atomic::Ordering::Relaxed);
6765
}
68-
69-
is_removed
7066
}
7167

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

0 commit comments

Comments
 (0)