From 2ace07d2d88c01a56b4d0f3194bd74a518a769c8 Mon Sep 17 00:00:00 2001 From: Keuin Date: Fri, 14 Jul 2023 22:25:27 +0800 Subject: Refactor: use pointer type of `Bilibili` to prevent unexpected copy. --- recording/runner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'recording/runner.go') 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 { -- cgit v1.2.3