From fa2b7c924e0f20db811b207414238202527226f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B0=D1=81=D0=B8=D0=BB=D0=B8=D0=B9=20=D0=A2=D0=BE?= =?UTF-8?q?=D0=BB=D1=81=D1=82=D0=BE=D0=B2?= Date: Thu, 29 Feb 2024 23:27:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20server/options.go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Василий Толстов --- server/options.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/options.go b/server/options.go index 8cdccc5b..8499438b 100644 --- a/server/options.go +++ b/server/options.go @@ -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") } } -- 2.45.2