From acf915b387908af3c2dada3011c54f70666289ee Mon Sep 17 00:00:00 2001 From: lwl0608 Date: Tue, 21 May 2024 17:18:30 +0800 Subject: [PATCH] fix --- library/httpserver/httpserver.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/library/httpserver/httpserver.go b/library/httpserver/httpserver.go index 2ee81393..6ed1e7fa 100644 --- a/library/httpserver/httpserver.go +++ b/library/httpserver/httpserver.go @@ -42,10 +42,6 @@ func StartHttpServer(srv *http.Server, cfg *configcenter.DefaultConfig, ip strin signal.Notify(quit, syscall.SIGINT, syscall.SIGTERM) <-quit logger.Info("Shutdown Server ...") - for i := 0; i < 10; i++ { - logger.Info("__Shutdown sleep %v", i+1) - time.Sleep(time.Second) - } if err := servicediscovery.DeRegister(ip, port); err != nil { logger.Fatal("DeRegister fail: %v", err)