summaryrefslogtreecommitdiff
path: root/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 /config.go
parent19d88fc879ba403347726138eb532fb85d38168e (diff)
default configs
Diffstat (limited to 'config.go')
-rw-r--r--config.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/config.go b/config.go
index 82f05ca3..23f1afc8 100644
--- a/config.go
+++ b/config.go
@@ -27,13 +27,8 @@ type Config struct {
// InitDefaults allows to init blank config with pre-defined set of default values.
func (cfg *Config) InitDefaults() error {
- if cfg.AllocateTimeout == 0 {
- cfg.AllocateTimeout = time.Minute
- }
-
- if cfg.DestroyTimeout == 0 {
- cfg.DestroyTimeout = time.Minute
- }
+ cfg.AllocateTimeout = time.Minute
+ cfg.DestroyTimeout = time.Minute
return nil
}