Обновить server/options.go #305

Merged
vtolstov merged 1 commits from vtolstov-patch-1 into master 2024-02-29 23:27:58 +03:00
Showing only changes of commit fa2b7c924e - Show all commits

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