diff options
author | badlop <badlop@process-one.net> | 2021-12-03 16:11:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-03 16:11:18 +0100 |
commit | b173ec0a780b1cd6d8da1f25f58c1880fbae293a (patch) | |
tree | aef7586d90db68d0637e39f20bfa52658b03345d | |
parent | Run make options (diff) | |
parent | PubSub: Bump default value for 'max_items' limit (diff) |
Merge pull request #3652 from weiss/bump-max-items
PubSub: Bump default value for 'max_items' limit
-rw-r--r-- | include/pubsub.hrl | 2 | ||||
-rw-r--r-- | src/mod_pubsub.erl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/pubsub.hrl b/include/pubsub.hrl index 8496b95ac..da919e9e2 100644 --- a/include/pubsub.hrl +++ b/include/pubsub.hrl @@ -23,7 +23,7 @@ -define(ERR_EXTENDED(E, C), mod_pubsub:extended_error(E, C)). %% The actual limit can be configured with mod_pubsub's option max_items_node --define(MAXITEMS, 10). +-define(MAXITEMS, 1000). %% this is currently a hard limit. %% Would be nice to have it configurable. diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl index 13b44b3ec..43344986e 100644 --- a/src/mod_pubsub.erl +++ b/src/mod_pubsub.erl @@ -4396,7 +4396,7 @@ mod_doc() -> #{value => "non_neg_integer() | infinity", desc => ?T("Define the maximum number of items that can be " - "stored in a node. Default value is: '10'.")}}, + "stored in a node. Default value is: '1000'.")}}, {max_nodes_discoitems, #{value => "pos_integer() | infinity", desc => |