diff options
author | Keuin <[email protected]> | 2023-07-11 22:56:07 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2023-07-11 22:56:07 +0800 |
commit | f5c63cde56eb35c0125a0545f084441cdd4340ab (patch) | |
tree | cf24779daaa3067902bef91d21bcdee7a78fd059 /danmaku/client.go | |
parent | 7fd817f6d1ead3de85294c1893a6e1572a1d12e3 (diff) |
Refactor: move data structures to a separate package to avoid circular dependency.
Diffstat (limited to 'danmaku/client.go')
-rw-r--r-- | danmaku/client.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/danmaku/client.go b/danmaku/client.go index c74a449..3862154 100644 --- a/danmaku/client.go +++ b/danmaku/client.go @@ -9,8 +9,8 @@ package danmaku import ( "context" "fmt" - "github.com/keuin/slbr/bilibili" "github.com/keuin/slbr/danmaku/dmpkg" + "github.com/keuin/slbr/types" "nhooyr.io/websocket" ) @@ -87,7 +87,7 @@ func (d *DanmakuClient) Disconnect() error { return ws.Close(websocket.StatusInternalError, "disconnected") } -func (d *DanmakuClient) Authenticate(roomId bilibili.RoomId, authKey string) error { +func (d *DanmakuClient) Authenticate(roomId types.RoomId, authKey string) error { pkg := dmpkg.NewAuth(dmpkg.ProtoPlainJson, roomId, authKey) data, err := pkg.Marshal() if err != nil { |