Slightly decrease the default OTK limit.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2025-09-12 04:13:34 +00:00
1 parent 7b5905bbca
commit 8dbea51968
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -2001,11 +2001,11 @@ pub struct Config {
/// Limits the number of One Time Keys per device (not per-algorithm). The
/// reference implementation maintains 50 OTK's at any given time, therefor
/// our default is at least ten times that. There is no known reason for an
/// our default is at least five times that. There is no known reason for an
/// administrator to adjust this value; it is provided here rather than
/// hardcoding it.
///
/// default: 512
/// default: 256
#[serde(default = "default_one_time_key_limit")]
pub one_time_key_limit: usize,
@@ -2833,4 +2833,4 @@ fn default_deprioritize_joins_through_servers() -> RegexSet {
RegexSet::new([r"matrix\.org"]).unwrap()
}
fn default_one_time_key_limit() -> usize { 512 }
fn default_one_time_key_limit() -> usize { 256 }
+2 -2
View File
@@ -1720,11 +1720,11 @@
# Limits the number of One Time Keys per device (not per-algorithm). The
# reference implementation maintains 50 OTK's at any given time, therefor
# our default is at least ten times that. There is no known reason for an
# our default is at least five times that. There is no known reason for an
# administrator to adjust this value; it is provided here rather than
# hardcoding it.
#
#one_time_key_limit = 512
#one_time_key_limit = 256
#[global.tls]