From 9b2164d56b55520bf64d89eac7b2a392c5219169 Mon Sep 17 00:00:00 2001 From: nick Date: Thu, 16 Jan 2025 12:40:38 +0900 Subject: [PATCH] feat: update --- node/pkg/checker/dal/app.go | 4 ++-- node/pkg/checker/delisted.go | 2 +- node/pkg/checker/event/app.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/node/pkg/checker/dal/app.go b/node/pkg/checker/dal/app.go index b46ced81b..f2f5d941b 100644 --- a/node/pkg/checker/dal/app.go +++ b/node/pkg/checker/dal/app.go @@ -34,7 +34,7 @@ func (u *UpdateTimes) CheckLastUpdateOffsets(alarmCount map[string]int) []string websocketNotPushedCount := 0 var messages []string for symbol, updateTime := range u.lastUpdates { - if slices.Contains(checker.DelistedSymbols, symbol) { + if slices.Contains(checker.SymbolsToBeDelisted, symbol) { continue } @@ -170,7 +170,7 @@ func checkDal(endpoint string, key string, alarmCount map[string]int, networkDel totalDelayed := 0 for _, data := range resp { - if slices.Contains(checker.DelistedSymbols, data.Symbol) { + if slices.Contains(checker.SymbolsToBeDelisted, data.Symbol) { continue } diff --git a/node/pkg/checker/delisted.go b/node/pkg/checker/delisted.go index c5568925c..951447f5c 100644 --- a/node/pkg/checker/delisted.go +++ b/node/pkg/checker/delisted.go @@ -1,5 +1,5 @@ package checker -var DelistedSymbols = []string{ +var SymbolsToBeDelisted = []string{ "JOY-USDT", } diff --git a/node/pkg/checker/event/app.go b/node/pkg/checker/event/app.go index b89d19c76..794cc49f3 100644 --- a/node/pkg/checker/event/app.go +++ b/node/pkg/checker/event/app.go @@ -55,7 +55,7 @@ func setUp(ctx context.Context) (*CheckList, error) { FeedsToCheck := []FeedToCheck{} for _, config := range configs { - if slices.Contains(checker.DelistedSymbols, config.Name) { + if slices.Contains(checker.SymbolsToBeDelisted, config.Name) { continue }