diff options
author | Wolfy-J <[email protected]> | 2018-09-23 15:00:51 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-09-23 15:00:51 +0300 |
commit | 46c53d51cd8edd4e934c47f49f806758f4ccad63 (patch) | |
tree | 5e04c41ebb1b8eba5713c992c3d4866e8fb959fb /config.go | |
parent | 19d88fc879ba403347726138eb532fb85d38168e (diff) |
default configs
Diffstat (limited to 'config.go')
-rw-r--r-- | config.go | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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 } |