Merge branch 'dev-lwl/consul'
This commit is contained in:
commit
173c312eb8
|
@ -118,7 +118,7 @@ func StartOfflineHttpServer(srv *http.Server, cfg *configcenter.DefaultConfig) {
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
|
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
if err := srv.Shutdown(ctx); err != nil {
|
if err := srv.Shutdown(ctx); err != nil {
|
||||||
log.Fatal("Server Shutdown:", err)
|
logger.Fatal("Server Shutdown: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
|
|
Loading…
Reference in New Issue