diff options
Diffstat (limited to 'server_config.go')
-rw-r--r-- | server_config.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/server_config.go b/server_config.go index b2d8845b..936744a1 100644 --- a/server_config.go +++ b/server_config.go @@ -35,13 +35,8 @@ type ServerConfig struct { // InitDefaults sets missing values to their default values. func (cfg *ServerConfig) InitDefaults() error { - if cfg.Relay == "" { - cfg.Relay = "pipes" - } - - if cfg.RelayTimeout == 0 { - cfg.RelayTimeout = time.Minute - } + cfg.Relay = "pipes" + cfg.RelayTimeout = time.Minute if cfg.Pool == nil { cfg.Pool = &Config{} |