Skip to content

Commit

Permalink
add initWorker to IIndexerWorker
Browse files Browse the repository at this point in the history
  • Loading branch information
guplersaxanoid committed Oct 26, 2023
1 parent ec1f502 commit 2d3499c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class WorkerBlockDispatcherService
SubstrateDatasource
>(
path.resolve(__dirname, '../../../dist/indexer/worker/worker.js'),
['syncRuntimeService', 'getSpecFromMap'],
['syncRuntimeService', 'getSpecFromMap', 'initWorker'],
storeService.getStore(),
cacheService.getCache(),
dynamicDsService,
Expand Down
1 change: 1 addition & 0 deletions packages/node/src/indexer/worker/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ function syncRuntimeService(
export type IIndexerWorker = IBaseIndexerWorker & {
syncRuntimeService: typeof syncRuntimeService;
getSpecFromMap: typeof getSpecFromMap;
initWorker: typeof initWorker;
};

(global as any).host = createWorkerHost([], {
Expand Down

0 comments on commit 2d3499c

Please sign in to comment.