diff --git a/mqtt/handler.go b/mqtt/handler.go index cc7b84494..031074801 100644 --- a/mqtt/handler.go +++ b/mqtt/handler.go @@ -125,7 +125,7 @@ func (h *handler) Publish(c *session.Client, topic *string, payload *[]byte) { } h.logger.Info("Publish - client ID " + c.ID + " to the topic: " + *topic) // Topics are in the format: - // channels//messages//.../ct/ + // ch//msg//.../ct/ channelParts := channelRegExp.FindStringSubmatch(*topic) if len(channelParts) < 1 { @@ -190,7 +190,7 @@ func (h *handler) Disconnect(c *session.Client) { func (h *handler) authAccess(username string, topic string) error { // Topics are in the format: - // channels//messages//.../ct/ + // ch//msg//.../ct/ if !channelRegExp.Match([]byte(topic)) { h.logger.Info("Malformed topic: " + topic) return errMalformedTopic