Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

Commit 6b5717c

Browse files
committed
Note that *http.Server.Handler can be a Shutdowner
1 parent cdd12b5 commit 6b5717c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graceful.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ type Server interface {
6868
Shutdowner
6969
}
7070

71-
// Shutdowner is implemented by *http.Server
71+
// Shutdowner is implemented by *http.Server, and optionally by *http.Server.Handler
7272
type Shutdowner interface {
7373
Shutdown(ctx context.Context) error
7474
}

0 commit comments

Comments
 (0)