mirror of
https://github.com/mochi-mqtt/server.git
synced 2025-10-28 10:31:26 +08:00
Add Keyed fields to events.Client for readability and go vet
This commit is contained in:
@@ -444,9 +444,9 @@ func (s *Server) Publish(topic string, payload []byte, retain bool) error {
|
||||
// It provides a 'client' to which inline retained messages can be assigned.
|
||||
func (*inlineMessages) Info() events.Client {
|
||||
return events.Client{
|
||||
"inline",
|
||||
"inline",
|
||||
"inline",
|
||||
ID: "inline",
|
||||
Remote: "inline",
|
||||
Listener: "inline",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user