Skip to content

Commit

Permalink
Merge pull request #280 from kinode-dao/hf/hotfix-2
Browse files Browse the repository at this point in the history
hotfix: fix a bad merge
  • Loading branch information
dr-frmr committed Mar 17, 2024
2 parents fab82bf + b44352b commit 1a3de8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kinode/packages/app_store/app_store/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ pub enum Resp {
}

fn fetch_logs(eth_provider: &eth::Provider, filter: &eth::Filter) -> Vec<eth::Log> {
#[cfg(not(feature = "simulation-mode"))]
loop {
match eth_provider.get_logs(filter) {
Ok(res) => return res,
Expand All @@ -87,6 +88,7 @@ fn fetch_logs(eth_provider: &eth::Provider, filter: &eth::Filter) -> Vec<eth::Lo

#[allow(unused_variables)]
fn subscribe_to_logs(eth_provider: &eth::Provider, filter: eth::Filter) {
#[cfg(not(feature = "simulation-mode"))]
loop {
match eth_provider.subscribe(1, filter.clone()) {
Ok(()) => break,
Expand All @@ -97,6 +99,7 @@ fn subscribe_to_logs(eth_provider: &eth::Provider, filter: eth::Filter) {
}
}
}
#[cfg(not(feature = "simulation-mode"))]
println!("subscribed to logs successfully");
}

Expand Down
2 changes: 2 additions & 0 deletions kinode/packages/kns_indexer/kns_indexer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ sol! {
}

fn subscribe_to_logs(eth_provider: &eth::Provider, from_block: u64, filter: eth::Filter) {
#[cfg(not(feature = "simulation-mode"))]
loop {
match eth_provider.subscribe(1, filter.clone().from_block(from_block)) {
Ok(()) => break,
Expand All @@ -109,6 +110,7 @@ fn subscribe_to_logs(eth_provider: &eth::Provider, from_block: u64, filter: eth:
}
}
}
#[cfg(not(feature = "simulation-mode"))]
println!("subscribed to logs successfully");
}

Expand Down

0 comments on commit 1a3de8d

Please sign in to comment.