summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-11 13:00:52 +0300
committerValery Piashchynski <[email protected]>2021-01-11 13:00:52 +0300
commitc4112cd214a9c7cbed82c82eefc75904fb42d1af (patch)
tree680cc5f0d3f9a0d78a944e026568af61c12bd87e /config.go
parent5dc83ef5eee77f4d1ef557e5f8b566e75892680d (diff)
Update CI
Format imports and code Distinct internal and app errors
Diffstat (limited to 'config.go')
-rw-r--r--config.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.go b/config.go
index 649ad9f4..1a1d0a0a 100644
--- a/config.go
+++ b/config.go
@@ -8,6 +8,9 @@ import (
// Config defines basic behaviour of worker creation and handling process.
type Config struct {
+ // Error code for pool errors in the http handler (default 500)
+ PoolErrorCode uint64
+
// NumWorkers defines how many sub-processes can be run at once. This value
// might be doubled by Swapper while hot-swap.
NumWorkers int64