aboutsummaryrefslogtreecommitdiff
path: root/syncapi/syncapi.go
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2023-07-13 14:18:37 +0200
committerGitHub <noreply@github.com>2023-07-13 14:18:37 +0200
commitf12982472c71b8daf3de682c2807989ee695d2cf (patch)
tree16dce5247f0b7cc2c9416b68edf3bfd212079d87 /syncapi/syncapi.go
parent0df982a2e50021183fa478d99b2e463d512ff230 (diff)
Tweaks around `/messages` (#3149)
Try to mitigate some issues with `/messages`
Diffstat (limited to 'syncapi/syncapi.go')
-rw-r--r--syncapi/syncapi.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/syncapi/syncapi.go b/syncapi/syncapi.go
index 64a4af75..af6bddc7 100644
--- a/syncapi/syncapi.go
+++ b/syncapi/syncapi.go
@@ -144,8 +144,11 @@ func AddPublicRoutes(
logrus.WithError(err).Panicf("failed to start receipts consumer")
}
+ rateLimits := httputil.NewRateLimits(&dendriteCfg.ClientAPI.RateLimiting)
+
routing.Setup(
routers.Client, requestPool, syncDB, userAPI,
rsAPI, &dendriteCfg.SyncAPI, caches, fts,
+ rateLimits,
)
}