summaryrefslogtreecommitdiff
path: root/server_config.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-09-23 15:00:51 +0300
committerWolfy-J <[email protected]>2018-09-23 15:00:51 +0300
commit46c53d51cd8edd4e934c47f49f806758f4ccad63 (patch)
tree5e04c41ebb1b8eba5713c992c3d4866e8fb959fb /server_config.go
parent19d88fc879ba403347726138eb532fb85d38168e (diff)
default configs
Diffstat (limited to 'server_config.go')
-rw-r--r--server_config.go9
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{}