Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
YukiAbyss committed Aug 12, 2024
1 parent 253b2b8 commit 20d1887
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}()
Expand Down

0 comments on commit 20d1887

Please sign in to comment.