fix: resolve golangci-lint issues in channel system
This commit is contained in:
parent
a1db95b67f
commit
ee0c1a2c98
2 changed files with 3 additions and 3 deletions
|
|
@ -153,7 +153,7 @@ func (m *Manager) initChannel(name, displayName string) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Inject PlaceholderRecorder if channel supports it
|
// 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)
|
setter.SetPlaceholderRecorder(m)
|
||||||
}
|
}
|
||||||
m.channels[name] = ch
|
m.channels[name] = ch
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,12 @@ import "time"
|
||||||
|
|
||||||
// Protocol message types.
|
// Protocol message types.
|
||||||
const (
|
const (
|
||||||
// Client → Server
|
// TypeMessageSend is sent from client to server.
|
||||||
TypeMessageSend = "message.send"
|
TypeMessageSend = "message.send"
|
||||||
TypeMediaSend = "media.send"
|
TypeMediaSend = "media.send"
|
||||||
TypePing = "ping"
|
TypePing = "ping"
|
||||||
|
|
||||||
// Server → Client
|
// TypeMessageCreate is sent from server to client.
|
||||||
TypeMessageCreate = "message.create"
|
TypeMessageCreate = "message.create"
|
||||||
TypeMessageUpdate = "message.update"
|
TypeMessageUpdate = "message.update"
|
||||||
TypeMediaCreate = "media.create"
|
TypeMediaCreate = "media.create"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue