comment changed

This commit is contained in:
0xdcarns 2022-02-08 19:52:35 -05:00
parent 732665c3d4
commit 4a73958725

View file

@ -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)