Abhishek Kondur hace 1 año
padre
commit
47155ad768
Se han modificado 2 ficheros con 2 adiciones y 0 borrados
  1. 1 0
      auth/host_session.go
  2. 1 0
      mq/handlers.go

+ 1 - 0
auth/host_session.go

@@ -249,6 +249,7 @@ func CheckNetRegAndHostUpdate(networks []string, h *models.Host, relayNodeId uui
 		}
 	}
 	if servercfg.IsMessageQueueBackend() {
+		fmt.Println("1. $$$$$$$$$$$$$$$$$@@@@@@ ------------------->HEREEEEEEEE ")
 		mq.HostUpdate(&models.HostUpdate{
 			Action: models.RequestAck,
 			Host:   *h,

+ 1 - 0
mq/handlers.go

@@ -98,6 +98,7 @@ func UpdateHost(client mqtt.Client, msg mqtt.Message) {
 	case models.Acknowledgement:
 		hu := hostactions.GetAction(currentHost.ID.String())
 		if hu != nil {
+			fmt.Println("2. $$$$$$$$$$$$$$$$$@@@@@@ ------------------->HEREEEEEEEE ")
 			if err = HostUpdate(hu); err != nil {
 				slog.Error("failed to send new node to host", "name", hostUpdate.Host.Name, "id", currentHost.ID, "error", err)
 				return