MCPcopy Create free account
hub / github.com/subquery/subql / setMonitorService

Function setMonitorService

packages/node-core/src/process.ts:9–11  ·  view source on GitHub ↗
(service: MonitorServiceInterface)

Source from the content-addressed store, hash-verified

7let monitorService: MonitorServiceInterface;
8
9export function setMonitorService(service: MonitorServiceInterface): void {
10 monitorService = service;
11}
12
13export function exitWithError(error: Error | string, logger?: Pino.Logger, code = 1): never {
14 const errorMessage = typeof error === 'string' ? error : error.message;

Callers 2

constructorMethod · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected