Skip to content

Commit

Permalink
chore: more
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglonghong committed Nov 24, 2023
1 parent f6f6ac2 commit 55dc3b8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const makeProcessFromRoot = async (config: NxtpLighthouseConfig, chainDat
context.logger.info("In Slow Mode", requestContext, methodContext);
await processFromRoot();
} else {
throw new Error(`Unknown mode detected: ${rootManagerMode}`);
throw new Error(`Unknown mode detected: ${JSON.stringify(rootManagerMode)}`);
}
if (context.config.healthUrls.processor) {
await sendHeartbeat(context.config.healthUrls.processor, context.logger);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export const makePropagate = async (config: NxtpLighthouseConfig, chainData: Map
context.logger.info("In Slow Mode", requestContext, methodContext);
await propagate();
} else {
throw new Error(`Unknown mode detected: ${rootManagerMode}`);
throw new Error(`Unknown mode detected: ${JSON.stringify(rootManagerMode)}`);
}
if (context.config.healthUrls.propagate) {
await sendHeartbeat(context.config.healthUrls.propagate, context.logger);
Expand Down
2 changes: 1 addition & 1 deletion packages/agents/lighthouse/src/tasks/propose/propose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const makePropose = async (config: NxtpLighthouseConfig, chainData: Map<s
} else if (rootManagerMode.mode === ModeType.SlowMode) {
context.logger.info("In Slow Mode. No op.", requestContext, methodContext);
} else {
throw new Error(`Unknown mode detected: ${rootManagerMode}`);
throw new Error(`Unknown mode detected: ${JSON.stringify(rootManagerMode)}`);
}
if (context.config.healthUrls.propose) {
await sendHeartbeat(context.config.healthUrls.propose, context.logger);
Expand Down
2 changes: 1 addition & 1 deletion packages/agents/lighthouse/src/tasks/prover/prover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export const makeProver = async (config: NxtpLighthouseConfig, chainData: Map<st
context.logger.info("Prover started in Slow Mode", requestContext, methodContext);
context.mode = ModeType.SlowMode;
} else {
throw new Error(`Unknown mode detected: ${rootManagerMode}`);
throw new Error(`Unknown mode detected: ${JSON.stringify(rootManagerMode)}`);
}
if (context.config.healthUrls.prover) {
await sendHeartbeat(context.config.healthUrls.prover, context.logger);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const makeSendOutboundRoot = async (config: NxtpLighthouseConfig, chainDa
context.logger.info("In Slow Mode", requestContext, methodContext);
await sendOutboundRoot();
} else {
throw new Error(`Unknown mode detected: ${rootManagerMode}`);
throw new Error(`Unknown mode detected: ${JSON.stringify(rootManagerMode)}`);
}
if (context.config.healthUrls.sendOutboundRoot) {
await sendHeartbeat(context.config.healthUrls.sendOutboundRoot, context.logger);
Expand Down

0 comments on commit 55dc3b8

Please sign in to comment.