From 8775ac9b7c57701588b92dd007030b7d1b7cdf78 Mon Sep 17 00:00:00 2001 From: wood chen Date: Wed, 18 Sep 2024 01:43:33 +0800 Subject: [PATCH] fix bugs --- main.go | 6 +++--- service/binance.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index fa85be1..1843e15 100644 --- a/main.go +++ b/main.go @@ -6,7 +6,7 @@ import ( "strconv" "time" - binance "github.com/woodchen-ink/Q58Bot/service" + "github.com/woodchen-ink/Q58Bot/service" tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5" ) @@ -70,7 +70,7 @@ func setupBot() { func runGuard() { for { try(func() { - guard.Run() + service.RunGuard() }, "Guard") } } @@ -78,7 +78,7 @@ func runGuard() { func runBinance() { for { try(func() { - binance.Run() + service.RunBinance() }, "Binance") } } diff --git a/service/binance.go b/service/binance.go index 09b0975..26f1655 100644 --- a/service/binance.go +++ b/service/binance.go @@ -135,7 +135,7 @@ func sendPriceUpdate() { lastMsgID = sentMsg.MessageID } -func Run() { +func RunBinance() { log.Println("Sending initial price update...") sendPriceUpdate()