Rename add_active_tributary for clarity

This commit is contained in:
Luke Parker 2023-10-14 21:53:38 -04:00
parent 19e90b28b0
commit 7409d0b3cf
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ impl<D: Db> MainDb<D> {
(bytes, tributaries)
}
pub fn add_active_tributary(txn: &mut D::Transaction<'_>, spec: &TributarySpec) {
pub fn add_participating_in_tributary(txn: &mut D::Transaction<'_>, spec: &TributarySpec) {
txn.put(Self::in_tributary_key(spec.set()), []);
let key = Self::active_tributaries_key();

View file

@ -116,7 +116,7 @@ async fn handle_new_set<D: Db>(
// If this txn doesn't finish, this will be re-fired
// If we waited to save to the DB, this txn may be finished, preventing re-firing, yet the
// prior fired event may have not been received yet
crate::MainDb::<D>::add_active_tributary(txn, &spec);
crate::MainDb::<D>::add_participating_in_tributary(txn, &spec);
new_tributary_spec.send(spec).unwrap();
} else {