This commit is contained in:
lwl0608 2024-06-03 10:33:27 +08:00
parent 98760d185b
commit d25a7a13de
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ func StartOfflineHttpServer(srv *http.Server, cfg *configcenter.DefaultConfig) {
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
defer cancel()
if err := srv.Shutdown(ctx); err != nil {
log.Fatal("Server Shutdown:", err)
logger.Fatal("Server Shutdown: %v", err)
}
select {