Skip to content

Commit

Permalink
Move changes to node-core
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiname committed Oct 26, 2023
1 parent 2d3499c commit a91947a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/node-core/src/indexer/worker/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export async function createIndexerWorker<
DefaultWorkerFunctions<ApiConnection, DS>
>(
workerPath,
[...baseWorkerFunctions, ...workerFns],
[...baseWorkerFunctions, 'initWorker', ...workerFns],
{
...cacheHostFunctions(cache),
...storeHostFunctions(store),
Expand Down
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', 'initWorker'],
['syncRuntimeService', 'getSpecFromMap'],
storeService.getStore(),
cacheService.getCache(),
dynamicDsService,
Expand Down
1 change: 0 additions & 1 deletion packages/node/src/indexer/worker/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ 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 a91947a

Please sign in to comment.