aboutsummaryrefslogtreecommitdiff
path: root/syncapi
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-04-26 17:05:31 +0100
committerNeil Alexander <neilalexander@users.noreply.github.com>2022-04-26 17:05:31 +0100
commit6c5c6d73d771e0ea5cc325e4251bcbfc48b7d55e (patch)
tree111c3ad44fcb102cfe72f6f352086709587dc7b9 /syncapi
parentb527e33c16d70ee6f94ac12c077b43283ff1fd86 (diff)
Use a value that is Go 1.16-friendly
Diffstat (limited to 'syncapi')
-rw-r--r--syncapi/sync/request.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/syncapi/sync/request.go b/syncapi/sync/request.go
index c9ee8e4a..9d4740e9 100644
--- a/syncapi/sync/request.go
+++ b/syncapi/sync/request.go
@@ -52,8 +52,8 @@ func newSyncRequest(req *http.Request, device userapi.Device, syncDB storage.Dat
// Send as much account data down for complete syncs as possible
// by default, otherwise clients do weird things while waiting
// for the rest of the data to trickle down.
- filter.AccountData.Limit = math.MaxInt
- filter.Room.AccountData.Limit = math.MaxInt
+ filter.AccountData.Limit = math.MaxInt32
+ filter.Room.AccountData.Limit = math.MaxInt32
}
filterQuery := req.URL.Query().Get("filter")
if filterQuery != "" {