We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f5284f commit 5f62b23Copy full SHA for 5f62b23
1 file changed
crates/core/src/dutydb/memory.rs
@@ -366,6 +366,11 @@ impl MemDB {
366
.await
367
}
368
369
+ // A single Notify per duty type wakes all waiters on every store, not only
370
+ // those whose key matches. The number of concurrent waiters per duty type
371
+ // is small (one per validator), so the extra wakeups are cheap. A keyed
372
+ // notify (HashMap<Key, Sender>) would avoid them but adds complexity that
373
+ // isn't worth it here.
374
async fn await_data<V>(
375
&self,
376
notify: &Notify,
0 commit comments