From e5443ef2c17c652f063fa959fa679257a43181b7 Mon Sep 17 00:00:00 2001 From: shan-96 Date: Mon, 24 Jun 2024 02:23:02 +0700 Subject: [PATCH] lint --- server/server_config.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/server_config.go b/server/server_config.go index 0e6e5c8..6908068 100644 --- a/server/server_config.go +++ b/server/server_config.go @@ -10,6 +10,10 @@ type ServerConfig struct { } var DefaultServerConfig = ServerConfig{ - ReadHeaderTimeout: 3 * time.Second, - ReadTimeout: 30 * time.Second, + ReadHeaderTimeout: ReadHeaderTimeoutSeconds * time.Second, + ReadTimeout: ReadTimeoutSeconds * time.Second, } + +const ReadHeaderTimeoutSeconds = 3 + +const ReadTimeoutSeconds = 30