From f4510f89909a4c3d7f171f1a044e7586a22bfba8 Mon Sep 17 00:00:00 2001 From: mountain Date: Mon, 10 Jul 2023 17:58:00 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95;;;;;?= =?UTF-8?q?=EB=B0=94=EB=B3=B8=EA=B0=80;;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 1bdd26e..aa73093 100644 --- a/server.go +++ b/server.go @@ -132,7 +132,7 @@ func (server *Server) shutdown() { logger.Println("http server shutdown. healthcheckcounter :", t) atomic.StoreInt64(&healthcheckcounter, math.MinInt64) - for cnt := 0; cnt >= 100; { + for cnt := 0; cnt < 100; { next := atomic.LoadInt64(&healthcheckcounter) if next == t { cnt++