diff options
Diffstat (limited to 'src/lanes.lua')
-rw-r--r-- | src/lanes.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lanes.lua b/src/lanes.lua index 982de98..e7763b1 100644 --- a/src/lanes.lua +++ b/src/lanes.lua | |||
@@ -115,8 +115,8 @@ end | |||
115 | local param_checkers = | 115 | local param_checkers = |
116 | { | 116 | { |
117 | nb_keepers = function(val_) | 117 | nb_keepers = function(val_) |
118 | -- nb_keepers should be a number > 0 | 118 | -- nb_keepers should be a number in [1,100] (so that nobody tries to run OOM by specifying a huge amount) |
119 | return type(val_) == "number" and val_ > 0 | 119 | return type(val_) == "number" and val_ > 0 and val_ <= 100 |
120 | end, | 120 | end, |
121 | keepers_gc_threshold = function(val_) | 121 | keepers_gc_threshold = function(val_) |
122 | -- keepers_gc_threshold should be a number | 122 | -- keepers_gc_threshold should be a number |