Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Azuki-bar committed Nov 21, 2023
1 parent 3ac32a1 commit 236570f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/state-manager/pkg/mqtt_handler/mqtt_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (h *Handler) getState(target string, id string) {
if err != nil {
log.Println(err.Error())
// Return error message
token := cc.Publish("setting/"+id+"/get/accepted", 0, false, "error")
token := h.client.Publish("setting/"+id+"/get/accepted", 0, false, "error")
token.Wait()
return
}
Expand All @@ -153,7 +153,7 @@ func (h *Handler) getState(target string, id string) {
// remove \n code
raw = []byte(strings.Replace(string(raw), "\n", "", -1))
raw = []byte(strings.Replace(string(raw), " ", "", -1))
token := cc.Publish("setting/"+id+"/get/accepted", 0, false, string(raw))
token := h.client.Publish("setting/"+id+"/get/accepted", 0, false, string(raw))
token.Wait()

case "train":
Expand Down

0 comments on commit 236570f

Please sign in to comment.