diff options
author | Wolfy-J <[email protected]> | 2020-10-17 17:35:36 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2020-10-17 17:35:36 +0300 |
commit | 2b7214fc1d852307e363787e592435dfa1ac5be0 (patch) | |
tree | 53c4ae859463742ac941d36931e579aea01de204 | |
parent | 6f7e126d6ea25c83b4df50048d1073c6e76ff338 (diff) |
- config todos
-rw-r--r-- | pool.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -108,6 +108,7 @@ type Config struct { } // InitDefaults allows to init blank config with pre-defined set of default values. +// todo: does not do anything func (cfg *Config) InitDefaults() error { cfg.AllocateTimeout = time.Minute cfg.DestroyTimeout = time.Minute @@ -130,6 +131,7 @@ func (cfg *Config) Valid() error { return fmt.Errorf("pool.DestroyTimeout must be set") } + // todo: not required if cfg.ExecTTL == 0 { return fmt.Errorf("pool.ExecTTL must be set") } |