mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 06:46:53 +00:00
Add a rate limit for inbound message bytes for a given account
This commit is contained in:
1 parent
e38a713ccc
commit
e87468fbe0
4 files changed
+18
-5
No files matched your search
+1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user