From 436db8877dfc15aee2575d22861ec407caace690 Mon Sep 17 00:00:00 2001 From: dusanb94 Date: Wed, 14 Oct 2020 11:03:39 +0200 Subject: [PATCH] Fix comments Signed-off-by: dusanb94 --- mqtt/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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