Software /
code /
prosody
Comparison
plugins/mod_debug_reset.lua @ 12977:74b9e05af71e
plugins: Prefix module imports with prosody namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 24 Mar 2023 13:15:28 +0100 |
parent | 12970:d36243e98704 |
child | 13028:b2e6a175537d |
comparison
equal
deleted
inserted
replaced
12976:a187600ec7d6 | 12977:74b9e05af71e |
---|---|
3 -- It is useful to ensure isolation between test runs, for example. It may | 3 -- It is useful to ensure isolation between test runs, for example. It may |
4 -- also be of use for some kinds of manual testing. | 4 -- also be of use for some kinds of manual testing. |
5 | 5 |
6 module:set_global(); | 6 module:set_global(); |
7 | 7 |
8 local hostmanager = require "core.hostmanager"; | 8 local hostmanager = require "prosody.core.hostmanager"; |
9 | 9 |
10 local timer = require "util.timer"; | 10 local timer = require "prosody.util.timer"; |
11 | 11 |
12 local function do_reset() | 12 local function do_reset() |
13 module:log("info", "Performing reset..."); | 13 module:log("info", "Performing reset..."); |
14 local hosts = {}; | 14 local hosts = {}; |
15 for host in pairs(prosody.hosts) do | 15 for host in pairs(prosody.hosts) do |