Преглед на файлове

fix: `\u003cnil\u003e` log output when http server shutdown. (#2055)

Zhang.Y преди 2 години
родител
ревизия
7da77302f4
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      rest/internal/starter.go

+ 1 - 1
rest/internal/starter.go

@@ -39,7 +39,7 @@ func start(host string, port int, handler http.Handler, run func(svr *http.Serve
 	}
 
 	waitForCalled := proc.AddWrapUpListener(func() {
-		if e := server.Shutdown(context.Background()); err != nil {
+		if e := server.Shutdown(context.Background()); e != nil {
 			logx.Error(e)
 		}
 	})