Skip to content

Commit

Permalink
op code
Browse files Browse the repository at this point in the history
  • Loading branch information
Pana committed Dec 30, 2024
1 parent dc37699 commit 9ed5ef1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions crates/client/src/rpc/impls/cfx/pubsub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ impl PubSubClient {
};

let mut ids_to_remove = vec![];
for id in subscribers.keys() {
let subscriber = subscribers.get(id).unwrap();
for (id, subscriber) in subscribers.iter() {
let send_res = notify(
subscriber,
pubsub::Result::Header(header.clone()),
Expand Down
3 changes: 1 addition & 2 deletions crates/client/src/rpc/impls/eth/eth_pubsub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ impl PubSubClient {

debug!("Notify {}", epoch);
let mut ids_to_remove = vec![];
for id in subscribers.keys() {
let subscriber = subscribers.get(id).unwrap();
for (id, subscriber) in subscribers.iter() {
let send_res = notify(
subscriber,
pubsub::Result::Header(header.clone()),
Expand Down

0 comments on commit 9ed5ef1

Please sign in to comment.