summaryrefslogtreecommitdiff
path: root/server_config.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-09-10 15:11:55 +0300
committerWolfy-J <[email protected]>2018-09-10 15:11:55 +0300
commit5dcbd1fd465956ee377c67f3b5d5a17701af235a (patch)
tree92a649424717478487e0d9f5a51da8b6584456c0 /server_config.go
parent6f70e31df4a88b85e576789ebe4fee6b5fc12d86 (diff)
more tests
Diffstat (limited to 'server_config.go')
-rw-r--r--server_config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/server_config.go b/server_config.go
index 1d8c281c..e2f9266b 100644
--- a/server_config.go
+++ b/server_config.go
@@ -43,6 +43,10 @@ func (cfg *ServerConfig) SetDefaults() {
cfg.RelayTimeout = time.Minute
}
+ if cfg.Pool == nil {
+ cfg.Pool = &Config{}
+ }
+
if cfg.Pool.AllocateTimeout == 0 {
cfg.Pool.AllocateTimeout = time.Minute
}