瀏覽代碼

comment changed

0xdcarns 3 年之前
父節點
當前提交
4a73958725
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      main.go

+ 1 - 2
main.go

@@ -185,8 +185,7 @@ func runGRPC(wg *sync.WaitGroup) {
 func runMessageQueue(wg *sync.WaitGroup) {
 	defer wg.Done()
 	logger.Log(0, fmt.Sprintf("connecting to mq broker at %s", servercfg.GetMessageQueueEndpoint()))
-	var client = mq.SetupMQTT(false)
-	// Set Up Keepalive message
+	var client = mq.SetupMQTT(false) // Set up the subscription listener
 	ctx, cancel := context.WithCancel(context.Background())
 	go mq.Keepalive(ctx)
 	quit := make(chan os.Signal, 1)