summaryrefslogtreecommitdiff
path: root/recording
diff options
context:
space:
mode:
Diffstat (limited to 'recording')
-rw-r--r--recording/watcher.go4
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...")