Обновить server/options.go
Some checks failed
pr / test (pull_request) Failing after 3m15s
lint / lint (pull_request) Successful in 11m33s

Signed-off-by: Василий Толстов <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2024-02-29 23:27:18 +03:00
parent de83f42149
commit fa2b7c924e

View File

@ -165,9 +165,9 @@ func Listener(nl net.Listener) options.Option {
}
}
func GracefulTimeout(t time.Duration) options.Option {
func GracefulTimeout(td time.Duration) options.Option {
return func(src interface{}) error {
return options.Set(src, t, ".GracefulTimeout")
return options.Set(src, td, ".GracefulTimeout")
}
}