diff options
author | Keuin <[email protected]> | 2023-07-14 22:29:35 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2023-07-14 22:29:35 +0800 |
commit | 49082656b79cea1d5ea21fe92564eaddd9b5843a (patch) | |
tree | e0d98cfd17e3c0fe044424d32396068b25e4096d /recording/watcher.go | |
parent | 2ace07d2d88c01a56b4d0f3194bd74a518a769c8 (diff) |
Refactor: use proper const name.0.4.0
Diffstat (limited to 'recording/watcher.go')
-rw-r--r-- | recording/watcher.go | 4 |
1 files changed, 2 insertions, 2 deletions
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...") |