Software /
code /
prosody
Comparison
plugins/mod_mam/mod_mam.lua @ 9882:18f025b3987d
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 22 Mar 2019 17:58:08 +0100 |
parent | 9802:d725c2ab0c7d |
parent | 9879:ddc07fb8dcd4 |
child | 9886:710a116341cd |
comparison
equal
deleted
inserted
replaced
9878:dd61201fc5af | 9882:18f025b3987d |
---|---|
348 -- messages, we collect the union of sets of users from dates that fall | 348 -- messages, we collect the union of sets of users from dates that fall |
349 -- outside the cleanup range. | 349 -- outside the cleanup range. |
350 | 350 |
351 function schedule_cleanup(username, date) | 351 function schedule_cleanup(username, date) |
352 cleanup_map:set(date or datestamp(), username, true); | 352 cleanup_map:set(date or datestamp(), username, true); |
353 end | 353 end |
354 local cleanup_time = module:measure("cleanup", "times"); | 354 local cleanup_time = module:measure("cleanup", "times"); |
355 | 355 |
356 cleanup_runner = require "util.async".runner(function () | 356 cleanup_runner = require "util.async".runner(function () |
357 local cleanup_done = cleanup_time(); | 357 local cleanup_done = cleanup_time(); |
358 local users = {}; | 358 local users = {}; |