mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 09:22:55 +00:00
fix fair queue
This commit is contained in:
@@ -112,7 +112,11 @@ where
|
||||
bucket_width,
|
||||
},
|
||||
state: Mutex::new(LeakyBucketState::new(end)),
|
||||
queue: fair.then(Notify::new),
|
||||
queue: fair.then(|| {
|
||||
let queue = Notify::new();
|
||||
queue.notify_one();
|
||||
queue
|
||||
}),
|
||||
};
|
||||
|
||||
Inner {
|
||||
|
||||
Reference in New Issue
Block a user