Merge pull request 'Обновить server/options.go' (#305) from vtolstov-patch-1 into master
Some checks failed
/ autoupdate (push) Failing after 2m27s

Reviewed-on: #305
This commit is contained in:
Василий Толстов 2024-02-29 23:27:56 +03:00
commit 3654961fde

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")
}
}