Skip to content

Commit

Permalink
fix: realtime indexer condition
Browse files Browse the repository at this point in the history
  • Loading branch information
k1rill-fedoseev committed Jan 9, 2024
1 parent e3adf9d commit b74b9f6
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 b74b9f6

Please sign in to comment.