Skip to content

Commit

Permalink
ignore elements
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Oct 23, 2024
1 parent a8f871a commit bd94747
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/store-sync/src/createStoreSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
mergeMap,
throwError,
mergeWith,
EMPTY,
ignoreElements,
} from "rxjs";
import { debug as parentDebug } from "./debug";
import { SyncStep } from "./SyncStep";
Expand Down Expand Up @@ -286,7 +286,7 @@ export async function createStoreSync({
}),
// subscribe to `latestBlockNumber$` so the sync progress is updated
// but don't merge/emit anything
mergeWith(latestBlockNumber$.pipe(mergeMap(() => EMPTY))),
mergeWith(latestBlockNumber$.pipe(ignoreElements())),
tap(async ({ logs, blockNumber }) => {
debug("stored", logs.length, "logs for block", blockNumber);
lastBlockNumberProcessed = blockNumber;
Expand Down

0 comments on commit bd94747

Please sign in to comment.