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

This commit is contained in:
Nyaaori 2022-09-09 19:17:29 +02:00
parent c86313d4fa
commit 7c196f4e00
No known key found for this signature in database
GPG key ID: E7819C3ED4D1F82E
3 changed files with 11 additions and 1 deletions

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
}