Matthew R Kasun 3 лет назад
Родитель
Сommit
cbc389c164
1 измененных файлов с 1 добавлено и 0 удалено
  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 {