feat: Add max prev events config option, allowing adjusting limit for prev_events fetching
This commit is contained in:
parent
c86313d4fa
commit
7c196f4e00
3 changed files with 11 additions and 1 deletions
|
@ -1226,7 +1226,7 @@ impl Service {
|
|||
.await
|
||||
.pop()
|
||||
{
|
||||
if amount > 100 {
|
||||
if amount > services().globals.max_fetch_prev_events() {
|
||||
// Max limit reached
|
||||
warn!("Max prev event limit reached!");
|
||||
graph.insert(prev_event_id.clone(), HashSet::new());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue