Add a rate limit for inbound message bytes for a given account

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2023-07-14 16:25:33 -04:00
1 parent e38a713ccc
commit e87468fbe0
4 files changed
+18 -5

No files matched your search

@@ -205,6 +205,7 @@ class MessageControllerTest {
when(dynamicConfigurationManager.getConfiguration()).thenReturn(dynamicConfiguration);
when(rateLimiters.getMessagesLimiter()).thenReturn(rateLimiter);
when(rateLimiters.getInboundMessageBytes()).thenReturn(rateLimiter);
}
private static Device generateTestDevice(final long id, final int registrationId, final int pniRegistrationId, final ECSignedPreKey signedPreKey, final long createdAt, final long lastSeen) {