summaryrefslogtreecommitdiff
path: root/pool.go
diff options
context:
space:
mode:
Diffstat (limited to 'pool.go')
-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")
}