summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-10 17:53:13 +0300
committerWolfy-J <[email protected]>2018-06-10 17:53:13 +0300
commit4fd4c7a1e8194287249fa59252afc2cd260d5643 (patch)
tree7f2f3872ff13ff063acca14d4294b4d299c3dea2 /config.go
parent094a4c211022b9446ef988c74c546ad6efb09722 (diff)
rr is working now
Diffstat (limited to 'config.go')
-rw-r--r--config.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/config.go b/config.go
index a20f778b..8fe8dadf 100644
--- a/config.go
+++ b/config.go
@@ -28,15 +28,15 @@ type Config struct {
// Reconfigure returns error if cfg not valid
func (cfg *Config) Valid() error {
if cfg.NumWorkers == 0 {
- return fmt.Errorf("cfg.NumWorkers must be set")
+ return fmt.Errorf("pool.NumWorkers must be set")
}
if cfg.AllocateTimeout == 0 {
- return fmt.Errorf("cfg.AllocateTimeout must be set")
+ return fmt.Errorf("pool.AllocateTimeout must be set")
}
if cfg.DestroyTimeout == 0 {
- return fmt.Errorf("cfg.DestroyTimeout must be set")
+ return fmt.Errorf("pool.DestroyTimeout must be set")
}
return nil