summaryrefslogtreecommitdiff
path: root/pool.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-10-27 15:58:46 +0300
committerValery Piashchynski <[email protected]>2020-10-27 15:58:46 +0300
commitc9af916ae4d78334d348ed1ef7238206f3ecb7a1 (patch)
tree43c04f7c538ecbd0b29fc280d41df5d00f203436 /pool.go
parentfd60aff1cddf32b0c45d934fcf14b070df80adcf (diff)
parent105bde0e0c1a7c133d1daa10603ca5ce9a9ade4d (diff)
Merge remote-tracking branch 'origin/release_2.0' into feature/pool_supervisor
# Conflicts: # static_pool.go # sync_worker.go
Diffstat (limited to 'pool.go')
-rwxr-xr-xpool.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pool.go b/pool.go
index 721b67c1..a95b8cfb 100755
--- a/pool.go
+++ b/pool.go
@@ -68,6 +68,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