From b6eb2c0da4e653c6fdd278bcbdcd55ec376cd481 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sun, 2 Jul 2023 14:48:47 +0800 Subject: Refactor: move RoomId type to the correct package. Type all room ID usages. --- danmaku/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'danmaku/client.go') diff --git a/danmaku/client.go b/danmaku/client.go index b785e23..c74a449 100644 --- a/danmaku/client.go +++ b/danmaku/client.go @@ -9,7 +9,7 @@ package danmaku import ( "context" "fmt" - "github.com/keuin/slbr/common" + "github.com/keuin/slbr/bilibili" "github.com/keuin/slbr/danmaku/dmpkg" "nhooyr.io/websocket" @@ -87,7 +87,7 @@ func (d *DanmakuClient) Disconnect() error { return ws.Close(websocket.StatusInternalError, "disconnected") } -func (d *DanmakuClient) Authenticate(roomId common.RoomId, authKey string) error { +func (d *DanmakuClient) Authenticate(roomId bilibili.RoomId, authKey string) error { pkg := dmpkg.NewAuth(dmpkg.ProtoPlainJson, roomId, authKey) data, err := pkg.Marshal() if err != nil { -- cgit v1.2.3