Skip to content

Commit b6451d6

Browse files
Update serve.go
1 parent d319450 commit b6451d6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

xhttp/serve.go

-2
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ func Serve(ctx context.Context, shutdownTimeout time.Duration, s *http.Server, l
3535
select {
3636
case err := <-done:
3737
return err
38-
3938
case <-ctx.Done():
40-
4139
shutdownCtx := xcontext.WithoutCancel(ctx)
4240
shutdownCtx, cancel := context.WithTimeout(shutdownCtx, shutdownTimeout)
4341
defer cancel()

0 commit comments

Comments
 (0)