summaryrefslogtreecommitdiff
path: root/danmaku/dmpkg/auth.go
diff options
context:
space:
mode:
authorKeuin <[email protected]>2023-07-01 22:10:22 +0800
committerKeuin <[email protected]>2023-07-01 22:10:44 +0800
commitb8d0d0c3b6b2ffe40921aa4c247c101dd0ce958d (patch)
treec14f512312a6ee2fab6bdaef7cb55dfedbf19262 /danmaku/dmpkg/auth.go
parent8f07f6f4d7e91a9e4b7164a39759907fac5fb8a1 (diff)
Refactor: rename consts to follow Go idiom. Fix const comment style.
Diffstat (limited to 'danmaku/dmpkg/auth.go')
-rw-r--r--danmaku/dmpkg/auth.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/danmaku/dmpkg/auth.go b/danmaku/dmpkg/auth.go
index c39fbd9..5caf868 100644
--- a/danmaku/dmpkg/auth.go
+++ b/danmaku/dmpkg/auth.go
@@ -23,11 +23,11 @@ type authInfo struct {
// NewAuth creates a new authentication exchange.
func NewAuth(protocol ProtocolVer, roomId common.RoomId, authKey string) (exc DanmakuExchange) {
exc, _ = NewPlainExchange(OpConnect, authInfo{
- UID: kUidGuest,
+ UID: UidGuest,
RoomId: uint64(roomId),
ProtoVer: int(protocol),
- Platform: kPlatformWeb,
- Type: kAuthTypeDefault,
+ Platform: PlatformWeb,
+ Type: AuthTypeDefault,
Key: authKey,
})
return