Skip to content

Commit

Permalink
Provide inner mutability to Indexes and Counters
Browse files Browse the repository at this point in the history
  • Loading branch information
tiram88 committed Jan 30, 2024
1 parent 22acaa0 commit 0c220aa
Show file tree
Hide file tree
Showing 7 changed files with 535 additions and 326 deletions.
4 changes: 2 additions & 2 deletions notify/benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ fn create_addresses(count: usize) -> Vec<Address> {
}

fn create_and_fill_context(addresses: &[Address]) -> SubscriptionContext {
let mut indexes = Indexes::new(vec![]);
let indexes = Indexes::new(vec![]);
let context = SubscriptionContext::new();
let _ = context.address_tracker.register(&mut indexes, addresses);
let _ = context.address_tracker.register(&indexes, addresses);
context
}

Expand Down
Loading

0 comments on commit 0c220aa

Please sign in to comment.