File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -109,10 +109,10 @@ func (cs *CS) unsubscribe() {
109
109
func (cs * CS ) pushHandler (msg client.Msg , err error ) {
110
110
// TODO: push messages
111
111
if err != nil {
112
- log .Printf ("push message: %s" , msg )
113
- } else {
114
112
log .Printf ("push message error: %s" , err )
113
+ return
115
114
}
115
+ log .Printf ("%s" , msg )
116
116
}
117
117
118
118
func (cs * CS ) getEnabled (client * client.Client ) hndFn {
Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ module github.com/pico-cs/mqtt-gateway
2
2
3
3
go 1.19
4
4
5
- // replace github.com/pico-cs/go-client => ../go-client
6
- // replace github.com/pico-cs/go-client/client => ../go-client/client
5
+ // replace github.com/pico-cs/go-client => ../go-client
6
+ // replace github.com/pico-cs/go-client/client => ../go-client/client
7
7
8
8
require (
9
9
github.com/eclipse/paho.mqtt.golang v1.4.2
10
- github.com/pico-cs/go-client v0.2.2
10
+ github.com/pico-cs/go-client v0.2.3
11
11
golang.org/x/exp v0.0.0-20221217163422-3c43f8badb15
12
12
gopkg.in/yaml.v3 v3.0.1
13
13
)
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ github.com/eclipse/paho.mqtt.golang v1.4.2/go.mod h1:JGt0RsEwEX+Xa/agj90YJ9d9DH2
6
6
github.com/gorilla/websocket v1.4.2 /go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE =
7
7
github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc =
8
8
github.com/gorilla/websocket v1.5.0 /go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE =
9
- github.com/pico-cs/go-client v0.2.2 h1:y682p6Gbs51qHYAFUctIzz/xoQrkB3D174Uz78BS+J0 =
10
- github.com/pico-cs/go-client v0.2.2 /go.mod h1:ty2wUvjX3bS2gK/dgpGFOjBUFwijDvX+WnHFB5wVKQg =
9
+ github.com/pico-cs/go-client v0.2.3 h1:SNvavTQuFq+wWqtaxJ8nAMdrXKo3hOYzXAphEvcN9/4 =
10
+ github.com/pico-cs/go-client v0.2.3 /go.mod h1:ty2wUvjX3bS2gK/dgpGFOjBUFwijDvX+WnHFB5wVKQg =
11
11
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
12
12
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY =
13
13
go.bug.st/serial v1.4.1 h1:AwYUNixVf90XymNeJaUkMrPp+GZQe3RMFQmpVdHIUK8 =
You can’t perform that action at this time.
0 commit comments