fix: resolve golangci-lint issues in channel system

This commit is contained in:
Hoshina
2026-02-23 05:22:18 +08:00
parent 60b68b305a
commit 5d304a9aeb
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ func (m *Manager) initChannel(name, displayName string) {
}
}
// Inject PlaceholderRecorder if channel supports it
if setter, ok := ch.(interface{ SetPlaceholderRecorder(PlaceholderRecorder) }); ok {
if setter, ok := ch.(interface{ SetPlaceholderRecorder(r PlaceholderRecorder) }); ok {
setter.SetPlaceholderRecorder(m)
}
m.channels[name] = ch
+2 -2
View File
@@ -4,12 +4,12 @@ import "time"
// Protocol message types.
const (
// Client → Server
// TypeMessageSend is sent from client to server.
TypeMessageSend = "message.send"
TypeMediaSend = "media.send"
TypePing = "ping"
// Server → Client
// TypeMessageCreate is sent from server to client.
TypeMessageCreate = "message.create"
TypeMessageUpdate = "message.update"
TypeMediaCreate = "media.create"