]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
modules/ta_update nitpick: don't call os.time() again
authorVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 13 Aug 2020 11:42:40 +0000 (13:42 +0200)
committerLukáš Ježek <lukas.jezek@nic.cz>
Thu, 15 Oct 2020 08:52:53 +0000 (10:52 +0200)
modules/ta_update/ta_update.lua

index 84f7a4a879eb5119b080abfed7b2cf489707cf0a..c1306ee6bfe10f2817f072f370825691dfd17098 100644 (file)
@@ -102,7 +102,7 @@ local function ta_present(keyset, rr, hold_down_time)
        elseif not key_revoked then -- First time seen (NewKey)
                rr.state = key_state.AddPend
                rr.key_tag = key_tag
-               rr.timer = os.time() + hold_down_time
+               rr.timer = now + hold_down_time
                table.insert(keyset, rr)
                return false
        end