Skip to content

Commit

Permalink
Merge pull request #736 from blockscout/kf/fix/user-ops-indexer
Browse files Browse the repository at this point in the history
[USER_OPS_INDEXER] fix: realtime indexer condition
  • Loading branch information
k1rill-fedoseev authored Jan 9, 2024
2 parents e3adf9d + b74b9f6 commit 848be76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl<'a, C: PubsubClient> IndexerV06<'a, C> {
.subscribe_logs(&filter)
.await?
.filter_map(|log| {
future::ready(if log.removed == Some(true) {
future::ready(if log.removed != Some(true) {
log.transaction_hash
} else {
None
Expand Down
2 changes: 1 addition & 1 deletion user-ops-indexer/user-ops-indexer-server/src/indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub async fn run(
) -> Result<(), anyhow::Error> {
tracing::info!("connecting to rpc");

let ws_client = Ws::connect_with_reconnects(settings.indexer.rpc_url, 3).await?;
let ws_client = Ws::connect_with_reconnects(settings.indexer.rpc_url, 20).await?;
let client = Provider::new(ws_client);

if settings.indexer.entrypoints.v06 {
Expand Down

0 comments on commit 848be76

Please sign in to comment.