mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
fix: resolve golangci-lint issues in channel system
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user