Skip to content

Commit

Permalink
Revert "try piping watchLogs to queue scheduler"
Browse files Browse the repository at this point in the history
This reverts commit ff56a0e.
  • Loading branch information
holic committed Nov 12, 2024
1 parent c941317 commit 510cc59
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/store-sync/src/createStoreSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ import {
throwError,
mergeWith,
ignoreElements,
observeOn,
queueScheduler,
} from "rxjs";
import { debug as parentDebug } from "./debug";
import { SyncStep } from "./SyncStep";
Expand Down Expand Up @@ -216,11 +214,7 @@ export async function createStoreSync({
const pendingLogsWebSocketUrl = publicClient.chain?.rpcUrls?.wiresaw?.webSocket?.[0];
const storedPendingLogs$ = pendingLogsWebSocketUrl
? startBlock$.pipe(
mergeMap((startBlock) =>
watchLogs({ url: pendingLogsWebSocketUrl, address, fromBlock: startBlock }).logs$.pipe(
observeOn(queueScheduler),
),
),
mergeMap((startBlock) => watchLogs({ url: pendingLogsWebSocketUrl, address, fromBlock: startBlock }).logs$),
concatMap(async (block) => {
await storageAdapter(block);
return block;
Expand Down

0 comments on commit 510cc59

Please sign in to comment.