Skip to content

Commit 5f62b23

Browse files
committed
comment
1 parent 9f5284f commit 5f62b23

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

crates/core/src/dutydb/memory.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,11 @@ impl MemDB {
366366
.await
367367
}
368368

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.
369374
async fn await_data<V>(
370375
&self,
371376
notify: &Notify,

0 commit comments

Comments
 (0)