summaryrefslogtreecommitdiff
path: root/pool.go
diff options
context:
space:
mode:
Diffstat (limited to 'pool.go')
-rwxr-xr-xpool.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pool.go b/pool.go
index b1b58b6a..aca1b340 100755
--- a/pool.go
+++ b/pool.go
@@ -66,6 +66,9 @@ type Pool interface {
// Configures the pool behaviour.
type Config struct {
+ // Debug flag creates new fresh worker before every request.
+ Debug bool
+
// NumWorkers defines how many sub-processes can be run at once. This value
// might be doubled by Swapper while hot-swap. Defaults to number of CPU cores.
NumWorkers int64
@@ -75,9 +78,6 @@ type Config struct {
// worker handle as many tasks as it can.
MaxJobs int64
- // HeavyLoad flag creates new fresh worker before every request.
- HeavyLoad bool
-
// AllocateTimeout defines for how long pool will be waiting for a worker to
// be freed to handle the task. Defaults to 60s.
AllocateTimeout time.Duration