Skip to content

Commit b374612

Browse files
committed
Default to a limit of 20 state events
1 parent 5f66df0 commit b374612

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

filter.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ package gomatrixserverlib
1616

1717
import (
1818
"errors"
19-
"math"
2019
)
2120

2221
// Filter is used by clients to specify how the server should filter responses to e.g. sync requests
@@ -121,7 +120,7 @@ func DefaultEventFilter() EventFilter {
121120
// is provided in the request
122121
func DefaultStateFilter() StateFilter {
123122
return StateFilter{
124-
Limit: math.MaxInt32,
123+
Limit: 20,
125124
NotSenders: nil,
126125
NotTypes: nil,
127126
Senders: nil,

0 commit comments

Comments
 (0)