summaryrefslogtreecommitdiff
path: root/pool.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2020-10-26 21:25:33 +0300
committerWolfy-J <[email protected]>2020-10-26 21:25:33 +0300
commit722584b153c009612ccbaf1fb7a9911f7afae476 (patch)
treed9fab8f2fbee3737668caf4657affab605fb4146 /pool.go
parent6d3bd7d47aa9d08847eecfb241298f323aae05ca (diff)
- lazy load test
Diffstat (limited to 'pool.go')
-rwxr-xr-xpool.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/pool.go b/pool.go
index de7e837d..b1b58b6a 100755
--- a/pool.go
+++ b/pool.go
@@ -75,10 +75,8 @@ type Config struct {
// worker handle as many tasks as it can.
MaxJobs int64
- // Deferred flag enables slower working mode which inits empty worker ahead of every request. Useful to debug
- // applications with heavy bootload phase. Do not use at production. It is also keeps pool without any workers
- // until first request.
- Deferred bool
+ // 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.