ソースを参照

pr comment: set err

Abhishek Kondur 2 年 前
コミット
1a63f1cf0e
1 ファイル変更1 行追加1 行削除
  1. 1 1
      controllers/hosts.go

+ 1 - 1
controllers/hosts.go

@@ -109,7 +109,7 @@ func updateHost(w http.ResponseWriter, r *http.Request) {
 		}
 	}
 	// publish host update through MQ
-	if mq.HostUpdate(&models.HostUpdate{
+	if err := mq.HostUpdate(&models.HostUpdate{
 		Action: models.UpdateHost,
 		Host:   *newHost,
 	}); err != nil {