Skip to content

Commit

Permalink
indexer: remove logs from default sink
Browse files Browse the repository at this point in the history
  • Loading branch information
jaipaljadeja committed Dec 8, 2024
1 parent 534a10a commit 42d7fbf
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions packages/indexer/src/sink.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Cursor, DataFinality } from "@apibara/protocol";
import consola from "consola";
import type { IndexerContext } from "./context";

export type SinkData = Record<string, unknown>;
Expand Down Expand Up @@ -29,19 +28,11 @@ export class DefaultSink extends Sink<unknown> {
await cb({});
}

async invalidateOnRestart(cursor?: Cursor) {
consola.info(
`Invalidating all rows with cursor > ${cursor?.orderKey} on restart`,
);
}
async invalidateOnRestart(cursor?: Cursor) {}

async invalidate(cursor?: Cursor) {
consola.info(`Invalidating cursor ${cursor?.orderKey}`);
}
async invalidate(cursor?: Cursor) {}

async finalize(cursor?: Cursor) {
consola.info(`Finalizing cursor ${cursor?.orderKey}`);
}
async finalize(cursor?: Cursor) {}
}

/** A default sink that does nothing. */
Expand Down

0 comments on commit 42d7fbf

Please sign in to comment.