feat: Add max prev events config option, allowing adjusting limit for prev_events fetching

This commit is contained in:
Nyaaori committed 2022-12-21 10:55:32 +01:00
1 parent c86313d4fa
commit 7c196f4e00
3 files changed
+11 -1

No files matched your search

+4
View File
@@ -222,6 +222,10 @@ impl Service {
self.config.max_request_size
}
pub fn max_fetch_prev_events(&self) -> u16 {
self.config.max_fetch_prev_events
}
pub fn allow_registration(&self) -> bool {
self.config.allow_registration
}