Skip to content

Commit ba034fb

Browse files
committed
Updated pub/publish
Signed-off-by: Vishal Rana <[email protected]>
1 parent 09f8970 commit ba034fb

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Gopkg.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,13 @@
2525
# unused-packages = true
2626

2727

28+
[[constraint]]
29+
name = "github.com/eclipse/paho.mqtt.golang"
30+
version = "1.1.1"
31+
2832
[[constraint]]
2933
name = "github.com/go-resty/resty"
30-
version = "1.5.0"
34+
version = "1.6.0"
3135

3236
[[constraint]]
3337
name = "github.com/labstack/echo"
@@ -44,7 +48,3 @@
4448
[prune]
4549
go-tests = true
4650
unused-packages = true
47-
48-
[[constraint]]
49-
name = "github.com/eclipse/paho.mqtt.golang"
50-
version = "1.1.1"

hub/hub.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (h *Hub) ConnectWithHandler(handler ConnectHandler) error {
7070
return t.Error()
7171
}
7272

73-
func (h *Hub) Publish(topic string, message []byte) error {
73+
func (h *Hub) Publish(topic string, message interface{}) error {
7474
t := h.client.Publish(h.normalizeTopic(topic), 0, false, message)
7575
t.Wait()
7676
return t.Error()

0 commit comments

Comments
 (0)