From f5c63cde56eb35c0125a0545f084441cdd4340ab Mon Sep 17 00:00:00 2001 From: Keuin Date: Tue, 11 Jul 2023 22:56:07 +0800 Subject: Refactor: move data structures to a separate package to avoid circular dependency. --- recording/runner.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'recording/runner.go') diff --git a/recording/runner.go b/recording/runner.go index 13a4050..936fcab 100644 --- a/recording/runner.go +++ b/recording/runner.go @@ -15,6 +15,7 @@ import ( "github.com/keuin/slbr/common/files" "github.com/keuin/slbr/common/myurl" "github.com/keuin/slbr/logging" + "github.com/keuin/slbr/types" "github.com/samber/mo" "io" "os" @@ -250,7 +251,7 @@ func record( ctx, logger, task, - func() (bilibili.RoomProfileResponse, error) { + func() (types.RoomProfileResponse, error) { return bi.GetRoomProfile(task.RoomId) }, ) @@ -266,7 +267,7 @@ func record( ctx, logger, task, - func() (bilibili.RoomUrlInfoResponse, error) { + func() (types.RoomUrlInfoResponse, error) { return bi.GetStreamingInfo(task.RoomId) }, ) -- cgit v1.2.3