|
@@ -109,6 +109,12 @@ func updateHost(w http.ResponseWriter, r *http.Request) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ go func() {
|
|
|
+ if err := mq.PublishPeerUpdate(); err != nil {
|
|
|
+ logger.Log(0, "fail to publish peer update: ", err.Error())
|
|
|
+ }
|
|
|
+ }()
|
|
|
+
|
|
|
apiHostData := newHost.ConvertNMHostToAPI()
|
|
|
logger.Log(2, r.Header.Get("user"), "updated host", newHost.ID.String())
|
|
|
w.WriteHeader(http.StatusOK)
|