mod_benchmark_storage/mod_benchmark_storage.lua
changeset 2199 967ba20e1202
parent 2198 136497948bf0
--- a/mod_benchmark_storage/mod_benchmark_storage.lua	Wed Jun 01 14:33:57 2016 +0200
+++ b/mod_benchmark_storage/mod_benchmark_storage.lua	Wed Jun 01 14:34:30 2016 +0200
@@ -17,7 +17,14 @@
 		return print("Usage: prosodyctl mod_"..module.name.." <storage driver>");
 	end
 
-	local hostname = "localhost";
+	local hostname = "benchmark.invalid";
+	prosody.hosts[hostname] = {
+		type = "local",
+		events = prosody.events,
+		modules = {},
+		sessions = {},
+		users = require "core.usermanager".new_null_provider(hostname)
+	};
 
 	sm.initialize_host(hostname);
 	um.initialize_host(hostname);