summaryrefslogtreecommitdiff
path: root/pool_supervisor.go
diff options
context:
space:
mode:
Diffstat (limited to 'pool_supervisor.go')
-rw-r--r--pool_supervisor.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pool_supervisor.go b/pool_supervisor.go
index 93afb8c6..73c1c5b7 100644
--- a/pool_supervisor.go
+++ b/pool_supervisor.go
@@ -47,9 +47,11 @@ func NewStaticPoolSupervisor(maxWorkerMemory, maxPoolMemory, maxTtl, maxIdle, wa
// just set to a big number, 5GB
maxPoolMemory = 5000 * MB
}
+
if watchTimeout == 0 {
watchTimeout = 60
}
+
return &staticPoolSupervisor{
maxWorkerMemory: maxWorkerMemory,
maxPoolMemory: maxPoolMemory,