server: add GracefulTimeout option #304

Merged
vtolstov merged 5 commits from graceful into v3 2024-02-29 23:24:52 +03:00
Showing only changes of commit 2c282825ce - Show all commits

View File

@ -325,7 +325,7 @@ func Listener(l net.Listener) Option {
type HandlerOption func(*HandlerOptions)
// GracefulTimeout duration
func GracefulTimeout(td time.Duration) options.Option {
func GracefulTimeout(td time.Duration) Option {
return func(o *Options) {
o.GracefulTimeout = td
}