Skip to content

Commit

Permalink
remove outdated comment
Browse files Browse the repository at this point in the history
Signed-off-by: Zahari Dichev <zaharidichev@gmail.com>
  • Loading branch information
zaharidichev committed Oct 28, 2020
1 parent c5744e7 commit 917ce40
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tokio/src/sync/batch_semaphore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ impl Semaphore {

/// Closes the semaphore. This prevents the semaphore from issuing new
/// permits and notifies all pending waiters.
// This will be used once the bounded MPSC is updated to use the new
// semaphore implementation.
pub(crate) fn close(&self) {
let mut waiters = self.waiters.lock();
// If the semaphore's permits counter has enough permits for an
Expand Down

0 comments on commit 917ce40

Please sign in to comment.