diff options
Diffstat (limited to 'aconf/persistence/init.lua')
-rw-r--r-- | aconf/persistence/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aconf/persistence/init.lua b/aconf/persistence/init.lua index c1398fa..bcc1f0e 100644 --- a/aconf/persistence/init.lua +++ b/aconf/persistence/init.lua @@ -45,7 +45,7 @@ function DataStore:get(path) local backend, comps = self:split_path(path) local top = topology(path) - local value = backend:get(comps, top) + local value, ts = backend:get(comps, top) if top then local t = top.type @@ -80,7 +80,7 @@ function DataStore:get(path) end end - return util.copy(value), self.mod_time[path] or 0 + return util.copy(value), ts or self.mod_time[path] or 0 end function DataStore:_set_multiple(mods) |