]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
ta_update: remove useless initialization
authorTomas Krizek <tomas.krizek@nic.cz>
Tue, 19 Mar 2019 14:33:57 +0000 (15:33 +0100)
committerPetr Špaček <petr.spacek@nic.cz>
Thu, 4 Apr 2019 12:18:58 +0000 (14:18 +0200)
It's impossible to add managed keysets unless ta_update is loaded,
in which case ta_update.start() is called by trust_anchors.add_file().

On ta_update unload, previously managed keys are flagged as unmanaged.

modules/ta_update/ta_update.lua

index 9604da089a8244ab300a9ab1bd1b62e74636f843..4792f85ad1e3bc69db00204e7ceea36394807358 100644 (file)
@@ -273,15 +273,6 @@ function ta_update.stop(zname)
        end
 end
 
--- immediatelly schedule key refresh for all managed TAs
-function ta_update.init()
-       for zname, keyset in pairs(trust_anchors.keysets) do
-               if keyset.managed then
-                       ta_update.start(zname)
-               end
-       end
-end
-
 -- stop all timers
 function ta_update.deinit()
        for zname, _ in pairs(tracked_tas) do