filter.GetTheoreticalLimit() to encompass the actual limit specified in the filter.

This commit is contained in:
fiatjaf
2025-12-19 06:52:46 -03:00
parent 14dcc01f8f
commit daee8575d9
7 changed files with 23 additions and 20 deletions
+8
View File
@@ -183,5 +183,13 @@ func (filter Filter) GetTheoreticalLimit() int {
}
}
if filter.Limit > 0 {
return filter.Limit
}
if filter.LimitZero {
return 0
}
return math.MaxInt
}