Skip to content

fix import from monitor service #2426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed
- Fix import monitor service from node-core

## [4.6.1] - 2024-06-06
### Fixed
- Fix import admin from node-core, update dockerfile to fix monitor default directory permission issue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import {
PoiSyncService,
InMemoryCacheService,
createIndexerWorker as createIndexerWorkerCore,
MonitorServiceInterface,
} from '@subql/node-core';
import { MonitorServiceInterface } from '@subql/node-core/indexer/monitor.service';
import { SubstrateBlock, SubstrateDatasource } from '@subql/types';
import { SubqueryProject } from '../../configure/SubqueryProject';
import { ApiPromiseConnection } from '../apiPromise.connection';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/indexer/fetch.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import {
PoiSyncService,
InMemoryCacheService,
SandboxService,
MonitorService,
} from '@subql/node-core';
import { MonitorService } from '@subql/node-core/indexer/monitor.service';
import { SubqueryProject } from '../configure/SubqueryProject';
import { ApiService } from './api.service';
import { ApiPromiseConnection } from './apiPromise.connection';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { initLogger } from '@subql/node-core/logger';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and the yargs imports are done for a reason to not require other things that depend on the global logger

import { initLogger } from '@subql/node-core';
import { yargsOptions } from './yargs';

const { argv } = yargsOptions;
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/yargs.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { yargsBuilder } from '@subql/node-core/yargs';
import { yargsBuilder } from '@subql/node-core';

export const yargsOptions = yargsBuilder({
initTesting: () => {
Expand Down
Loading