changeset 2693:04ae5b45e6c7

mod_measure_storage: Assume store type is "keyval" if missing
author Kim Alvefur <zash@zash.se>
date Sun, 16 Apr 2017 01:02:52 +0200
parents 785465f8af3d
children 38c66b58b470
files mod_measure_storage/mod_measure_storage.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_measure_storage/mod_measure_storage.lua	Sun Apr 16 00:58:02 2017 +0200
+++ b/mod_measure_storage/mod_measure_storage.lua	Sun Apr 16 01:02:52 2017 +0200
@@ -43,7 +43,7 @@
 
 local function hook_event(module)
 	module:hook("store-opened", function(event)
-		event.store = wrap_store(module, event.store_name, event.store_type, event.store);
+		event.store = wrap_store(module, event.store_name, event.store_type or "keyval", event.store);
 	end);
 end