mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
mod_s2s_bidi: Include empty list of labels in metrics
Throws error attempting to append the nil label list to an array for host-scoped metrics.
This commit is contained in:
parent
9327c4342a
commit
4ca4a6af7d
1 changed files with 3 additions and 3 deletions
|
@ -12,9 +12,9 @@ local xmlns_bidi = "urn:xmpp:bidi";
|
|||
|
||||
local require_encryption = module:get_option_boolean("s2s_require_encryption", true);
|
||||
|
||||
local offers_sent = module:metric("counter", "offers_sent", "", "Bidirectional connection offers sent");
|
||||
local offers_recv = module:metric("counter", "offers_recv", "", "Bidirectional connection offers received");
|
||||
local offers_taken = module:metric("counter", "offers_taken", "", "Bidirectional connection offers taken");
|
||||
local offers_sent = module:metric("counter", "offers_sent", "", "Bidirectional connection offers sent", {});
|
||||
local offers_recv = module:metric("counter", "offers_recv", "", "Bidirectional connection offers received", {});
|
||||
local offers_taken = module:metric("counter", "offers_taken", "", "Bidirectional connection offers taken", {});
|
||||
|
||||
module:hook("s2s-stream-features", function(event)
|
||||
local origin, features = event.origin, event.features;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue