http stop should use ctx (#1131)

pull/1132/head
dachang 3 years ago committed by GitHub
parent 7530fadde0
commit e45caab322
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      transport/http/server.go

@ -228,5 +228,5 @@ func (s *Server) Start(ctx context.Context) error {
// Stop stop the HTTP server.
func (s *Server) Stop(ctx context.Context) error {
s.log.Info("[HTTP] server stopping")
return s.Shutdown(context.Background())
return s.Shutdown(ctx)
}

Loading…
Cancel
Save