summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2020-10-17 17:35:36 +0300
committerWolfy-J <[email protected]>2020-10-17 17:35:36 +0300
commit2b7214fc1d852307e363787e592435dfa1ac5be0 (patch)
tree53c4ae859463742ac941d36931e579aea01de204
parent6f7e126d6ea25c83b4df50048d1073c6e76ff338 (diff)
- config todos
-rw-r--r--pool.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pool.go b/pool.go
index 67d092c0..a015d768 100644
--- a/pool.go
+++ b/pool.go
@@ -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")
}