From 0cd1ae08a82e79d607fcaf217c0fd46150144282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Borov=C4=8Danin?= Date: Mon, 24 Feb 2020 17:00:04 +0100 Subject: [PATCH] Fix typos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dušan Borovčanin --- examples/simple/simple.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/examples/simple/simple.go b/examples/simple/simple.go index ebf31e99..97c7c656 100644 --- a/examples/simple/simple.go +++ b/examples/simple/simple.go @@ -39,28 +39,26 @@ func (e *Event) AuthPublish(username, clientID string, topic *string, payload *[ // AuthSubscribe is called on device publish, // prior forwarding to the MQTT broker func (e *Event) AuthSubscribe(username, clientID string, topics *[]string) error { - e.logger.Info(fmt.Sprintf("AuthSubscribe() - clientID: %s, topics: %s", clientID, strings.Join(*topics, ","))) return nil } -// Register - after client sucesfully connected +// Register - after client successfully connected func (e *Event) Register(clientID string) { e.logger.Info(fmt.Sprintf("Register() - clientID: %s", clientID)) } -// Publish - after client sucesfully published +// Publish - after client successfully published func (e *Event) Publish(clientID, topic string, payload []byte) { e.logger.Info(fmt.Sprintf("Publish() - clientID: %s, topic: %s, payload: %s", clientID, topic, string(payload))) } -// Subscribe - after client sucesfully subscribed +// Subscribe - after client successfully subscribed func (e *Event) Subscribe(clientID string, topics []string) { e.logger.Info(fmt.Sprintf("Subscribe() - clientID: %s, topics: %s", clientID, strings.Join(topics, ","))) } -// Unubscribe - after client unsubscribed -func (e *Event) Unubscribe(clientID string, topics []string) { - - e.logger.Info(fmt.Sprintf("Unubscribe() - clientID: %s, topics: %s", clientID, strings.Join(topics, ","))) +// Unsubscribe - after client unsubscribed +func (e *Event) Unsubscribe(clientID string, topics []string) { + e.logger.Info(fmt.Sprintf("Unsubscribe() - clientID: %s, topics: %s", clientID, strings.Join(topics, ","))) }