Skip to content

Commit

Permalink
Rename add_active_tributary for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Oct 15, 2023
1 parent 19e90b2 commit 7409d0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion coordinator/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion coordinator/src/substrate/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7409d0b

Please sign in to comment.