Skip to content
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

chore: remove unused metricsRegistries #6957

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Changes from all commits
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
9 changes: 0 additions & 9 deletions packages/cli/src/cmds/beacon/handler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import path from "node:path";
import {getHeapStatistics} from "node:v8";
import {Registry} from "prom-client";
import {ErrorAborted} from "@lodestar/utils";
import {LevelDbController} from "@lodestar/db";
import {BeaconNode, BeaconDb} from "@lodestar/beacon-node";
Expand Down Expand Up @@ -61,13 +60,6 @@ export async function beaconHandler(args: BeaconArgs & GlobalArgs): Promise<void

if (ACTIVE_PRESET === PresetName.minimal) logger.info("ACTIVE_PRESET == minimal preset");

// additional metrics registries
const metricsRegistries: Registry[] = [];
let networkRegistry: Registry | undefined;
if (options.metrics.enabled) {
networkRegistry = new Registry();
metricsRegistries.push(networkRegistry);
}
const db = new BeaconDb(config, await LevelDbController.create(options.db, {metrics: null, logger}));
logger.info("Connected to LevelDB database", {path: options.db.name});

Expand All @@ -92,7 +84,6 @@ export async function beaconHandler(args: BeaconArgs & GlobalArgs): Promise<void
peerStoreDir: beaconPaths.peerStoreDir,
anchorState,
wsCheckpoint,
metricsRegistries,
});

// dev debug option to have access to the BN instance
Expand Down
Loading