Commit ef0bc449 authored by Petr Špaček's avatar Petr Špaček

Merge branch 'predict-defaults' into 'master'

modules/predict: don't skip reconfiguration if nil is passed

See merge request !755
parents a943fca9 548881ec
Pipeline #44539 failed with stages
in 5 minutes and 41 seconds
Knot Resolver 3.x.y (2019-0m-dd)
================================
Bugfixes
--------
- predict module: load stats module if config didn't specify period (!755)
Knot Resolver 3.2.1 (2019-01-10)
================================
......
......@@ -158,7 +158,10 @@ end
function predict.config(config)
-- Reconfigure
if type(config) ~= 'table' then return end
config = config or {}
if type(config) ~= 'table' then
error('[predict] configuration must be a table or nil')
end
if config.window then predict.window = config.window end
if config.period then predict.period = config.period end
-- Load dependent modules
......
-- setup resolver
modules = { 'predict', 'stats' }
modules = { 'predict' }
-- mock global functions
local resolve_count = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment