Comparison

core/storagemanager.lua @ 7994:3325ac397f17

storagemanager: Use the existing local reference to 'hosts'
author Kim Alvefur <zash@zash.se>
date Wed, 22 Mar 2017 10:38:36 +0100
parent 7947:24170d74b00b
child 7999:980606856882
comparison
equal deleted inserted replaced
7993:c654c92aad55 7994:3325ac397f17
162 end 162 end
163 end 163 end
164 end 164 end
165 if ret then 165 if ret then
166 local event_data = { host = host, store_name = store, store_type = typ, store = ret }; 166 local event_data = { host = host, store_name = store, store_type = typ, store = ret };
167 prosody.hosts[host].events.fire_event("store-opened", event_data); 167 hosts[host].events.fire_event("store-opened", event_data);
168 ret, err = event_data.store, event_data.store_err; 168 ret, err = event_data.store, event_data.store_err;
169 end 169 end
170 return ret, err; 170 return ret, err;
171 end 171 end
172 172