mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-09 19:34:53 +00:00
use notify_waiters to better express intent
This commit is contained in:
parent
aaf38e5978
commit
cb89376932
@ -70,7 +70,7 @@ impl Batcher {
|
||||
|
||||
// Notify the background task that we have a new entry in the database that needs
|
||||
// to be batched
|
||||
self.shared.batching_task.notify_one();
|
||||
self.shared.batching_task.notify_waiters();
|
||||
|
||||
// Await on the response from the background task
|
||||
// We can safely unwrap as the background task will never drop the sender
|
||||
|
Loading…
Reference in New Issue
Block a user