# HG changeset patch # User Kim Alvefur # Date 1638524582 -3600 # Node ID a2a0e00cbd24e3bd83489f3d1dc6c8fd8bdf0f3d # Parent 121c0401f83e24abc380a6c0c08bf5d944bb6156 mod_http_file_share: Back out 876e1b6d6ae4 diff -r 121c0401f83e -r a2a0e00cbd24 plugins/mod_http_file_share.lua --- a/plugins/mod_http_file_share.lua Fri Dec 03 09:08:23 2021 +0100 +++ b/plugins/mod_http_file_share.lua Fri Dec 03 10:43:02 2021 +0100 @@ -460,9 +460,9 @@ local prune_start = module:measure("prune", "times"); - module:daily("Remove expired files", function(task, boundary_time) + module:daily("Remove expired files", function(_, boundary_time) local prune_done = prune_start(); - local iter, total = assert(uploads:find(nil, { ["start"] = task.last; ["end"] = boundary_time; total = true })); + local iter, total = assert(uploads:find(nil, {["end"] = boundary_time; total = true})); if total == 0 then module:log("info", "No expired uploaded files to prune");