-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
throttle.toml
22 lines (18 loc) · 929 Bytes
/
throttle.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Sample throttle.cfg Explaining the options
[semaphores]
# Specify name and full count of semaphores. Uncomment the below line to create a semaphore named A
# with a full count of 42 and lock level 0. Setting the count to 1 would create a Mutex. If plan to
# acquire several locks at once to different semaphores. You should give the ones you want to
# acquire first a higher lock level. Throttle accepts a signed 32 bit integer as lock level.
# A = { max=42, level=0 }
# Lock level 0 is quite common. So there is a shortcut. This creates also a semaphore with full
# count 42 and default lock level 0.
# A = 42
# Alternative verbose style. This is not specific to throttle, it is just how TOML works.
# [semaphores.A]
# max = 42
# level = 0
# Uncomment below lines to log to standard error.
# [logging.stderr]
## Set this to either ERROR, WARN, INFO, DEBUG or TRACE. Default is WARN.
# level = "WARN"