Don't rate limit sync messages
This commit is contained in:
parent
bc29495dd0
commit
4e9bcd0d1f
|
@ -101,7 +101,9 @@ public class MessageController {
|
||||||
@Valid IncomingMessageList messages)
|
@Valid IncomingMessageList messages)
|
||||||
throws IOException, RateLimitExceededException
|
throws IOException, RateLimitExceededException
|
||||||
{
|
{
|
||||||
rateLimiters.getMessagesLimiter().validate(source.getNumber() + "__" + destinationName);
|
if (!source.getNumber().equals(destinationName)) {
|
||||||
|
rateLimiters.getMessagesLimiter().validate(source.getNumber() + "__" + destinationName);
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
boolean isSyncMessage = source.getNumber().equals(destinationName);
|
boolean isSyncMessage = source.getNumber().equals(destinationName);
|
||||||
|
|
Loading…
Reference in New Issue