From 20d188789d72ab988d35db2c2dac6540dfa3c6a7 Mon Sep 17 00:00:00 2001 From: yuki Date: Mon, 12 Aug 2024 15:16:02 +0800 Subject: [PATCH] fix bug --- main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 8a3bfe7..c10fac1 100644 --- a/main.go +++ b/main.go @@ -8,10 +8,12 @@ import ( ) func recordMetrics() { + testNet := checks.NewCheckDbShard("testnet", checks.TestNetRpc, checks.TestNetSpHosts) + mainNet := checks.NewCheckDbShard("mainnet", checks.MainNetRpc, checks.MainNetSpHosts) go func() { for { - checks.NewCheckDbShard("testnet", checks.TestNetRpc, checks.TestNetSpHosts).CheckDbShard() - checks.NewCheckDbShard("mainnet", checks.MainNetRpc, checks.MainNetSpHosts).CheckDbShard() + testNet.CheckDbShard() + mainNet.CheckDbShard() time.Sleep(time.Minute * 10) } }()