diff options
author | Keuin <[email protected]> | 2023-07-14 22:25:27 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2023-07-14 22:25:27 +0800 |
commit | 2ace07d2d88c01a56b4d0f3194bd74a518a769c8 (patch) | |
tree | b218043dacec97c08469855950838ceca67496c6 /recording/runner.go | |
parent | d7bd3edf61109936a09a5115938e86b1c17ea024 (diff) |
Refactor: use pointer type of `Bilibili` to prevent unexpected copy.
Diffstat (limited to 'recording/runner.go')
-rw-r--r-- | recording/runner.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recording/runner.go b/recording/runner.go index 936fcab..fcb135e 100644 --- a/recording/runner.go +++ b/recording/runner.go @@ -241,7 +241,7 @@ func tryRunTask(t *RunningTask) error { // nil (live is ended normally) func record( ctx context.Context, - bi bilibili.Bilibili, + bi *bilibili.Bilibili, task *TaskConfig, logger logging.Logger, ) error { @@ -348,7 +348,7 @@ func record( func getDanmakuServer( task *TaskConfig, - bi bilibili.Bilibili, + bi *bilibili.Bilibili, ) (string, string, error) { dmInfo, err := bi.GetDanmakuServerInfo(task.RoomId) if err != nil { |