From 20d54f4d3cad5732859e4594f3bc54cc0b7278dd Mon Sep 17 00:00:00 2001 From: tuyennhv Date: Thu, 19 Jan 2023 21:40:10 +0700 Subject: [PATCH] fix: ignore new closed connection (#399) * fix: ignore new closed connection * fix: update src/metrics.ts Co-authored-by: Cayman --- src/index.ts | 5 ++++- src/metrics.ts | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 3a9bb99a..2b8c044c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -698,7 +698,10 @@ export class GossipSub extends EventEmitter implements PubSub({ + name: 'gossipsub_new_connection_total', + help: 'Total new connection by status', + labelNames: ['status'] + }), + topicStrToLabel: topicStrToLabel, toTopic(topicStr: TopicStr): TopicLabel {