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