From 49082656b79cea1d5ea21fe92564eaddd9b5843a Mon Sep 17 00:00:00 2001 From: Keuin Date: Fri, 14 Jul 2023 22:29:35 +0800 Subject: Refactor: use proper const name. --- recording/watcher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'recording') diff --git a/recording/watcher.go b/recording/watcher.go index 181e0fc..0e4b459 100644 --- a/recording/watcher.go +++ b/recording/watcher.go @@ -24,7 +24,7 @@ type liveInfo struct { } const ( - kHeartBeatInterval = 30 * time.Second + heartBeatInterval = 30 * time.Second ) // watch monitors live room status by subscribing messages from Bilibili danmaku server, @@ -80,7 +80,7 @@ func watch( } // create heartbeat timer - heartBeatTimer := time.NewTicker(kHeartBeatInterval) + heartBeatTimer := time.NewTicker(heartBeatInterval) defer func() { heartBeatTimer.Stop() }() logger.Info("Checking initial live status...") -- cgit v1.2.3