1231231
This commit is contained in:
parent
a54361d249
commit
ceb46b5f38
|
@ -58,7 +58,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:", err)
|
||||
}
|
||||
|
||||
select {
|
||||
|
|
Loading…
Reference in New Issue