Skip to content

Commit db859ae

Browse files
authored
fix: do not load duckdb binary unless required (#1776)
* fix: do not load duckdb binary unless required * chore: ignore buggy ts-unused-export line
1 parent 656b79e commit db859ae

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/event-replay/parquet-based/replay-controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { MIGRATIONS_DIR } from '../../datastore/pg-store';
2626
*
2727
* It also has functions to prepare and finalize the database for an event-replay.
2828
*/
29+
// ts-unused-exports:disable-next-line
2930
export class ReplayController {
3031
private readonly db;
3132
private readonly dataset;

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import { PgStore } from './datastore/pg-store';
2020
import { PgWriteStore } from './datastore/pg-write-store';
2121
import { registerMempoolPromStats } from './datastore/helpers';
2222
import { logger } from './logger';
23-
import { ReplayController } from './event-replay/parquet-based/replay-controller';
2423
import {
2524
isProdEnv,
2625
numberToHex,
@@ -284,6 +283,7 @@ async function handleProgramArgs() {
284283
args.options.force
285284
);
286285
} else if (args.operand === 'from-parquet-events') {
286+
const { ReplayController } = await import('./event-replay/parquet-based/replay-controller');
287287
const replay = await ReplayController.init();
288288
await replay.prepare();
289289
await replay.do();

0 commit comments

Comments
 (0)