Explorar o código

fix mq shutdown on ctrl-c

Matthew R Kasun %!s(int64=3) %!d(string=hai) anos
pai
achega
cbc389c164
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      main.go

+ 1 - 0
main.go

@@ -220,6 +220,7 @@ func runMessageQueue(wg *sync.WaitGroup) {
 	signal.Notify(quit, syscall.SIGTERM, os.Interrupt)
 	<-quit
 	logger.Log(0, "Message Queue shutting down")
+	client.Disconnect(250)
 }
 
 func authServerUnaryInterceptor() grpc.ServerOption {