diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/CallQualitySurveyController.java b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/CallQualitySurveyController.java index 1bea965b4..8123cdd0a 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/CallQualitySurveyController.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/CallQualitySurveyController.java @@ -50,7 +50,7 @@ public class CallQualitySurveyController { @ApiResponse(responseCode = "429", description = "Too many attempts", headers = @Header( name = "Retry-After", description = "If present, an positive integer indicating the number of seconds before a subsequent attempt could succeed")) - @RateLimitedByIp(RateLimiters.For.SUBMIT_CALL_QUALITY_SURVERY) + @RateLimitedByIp(RateLimiters.For.SUBMIT_CALL_QUALITY_SURVEY) public void submitCallQualitySurvey(@Auth final Optional authenticatedDevice, @RequestBody(description = "A serialized survey response protobuf entity") @NotNull final byte[] surveyResponse, diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/limits/RateLimiters.java b/service/src/main/java/org/whispersystems/textsecuregcm/limits/RateLimiters.java index de9359906..4861bc692 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/limits/RateLimiters.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/limits/RateLimiters.java @@ -56,7 +56,7 @@ public class RateLimiters extends BaseRateLimiters { RECORD_DEVICE_TRANSFER_REQUEST("recordDeviceTransferRequest", new RateLimiterConfig(10, Duration.ofMillis(100), true)), WAIT_FOR_DEVICE_TRANSFER_REQUEST("waitForDeviceTransferRequest", new RateLimiterConfig(10, Duration.ofMillis(100), true)), DEVICE_CHECK_CHALLENGE("deviceCheckChallenge", new RateLimiterConfig(10, Duration.ofMinutes(1), false)), - SUBMIT_CALL_QUALITY_SURVERY("submitCallQualitySurvey", new RateLimiterConfig(100, Duration.ofMinutes(1), true)) + SUBMIT_CALL_QUALITY_SURVEY("submitCallQualitySurvey", new RateLimiterConfig(100, Duration.ofMinutes(1), true)) ; private final String id; @@ -224,6 +224,6 @@ public class RateLimiters extends BaseRateLimiters { } public RateLimiter getSubmitCallQualitySurveyLimiter() { - return forDescriptor(For.SUBMIT_CALL_QUALITY_SURVERY); + return forDescriptor(For.SUBMIT_CALL_QUALITY_SURVEY); } }