Skip to content

Commit 088a845

Browse files
committed
Remove unused SourceAddress parameter
1 parent b600652 commit 088a845

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

captchaservice-backend/src/main/java/de/muenchen/captchaservice/service/captcha/CaptchaService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public CaptchaService(final CaptchaProperties captchaProperties, final Difficult
3838
public Altcha.Challenge createChallenge(final String siteKey, final SourceAddress sourceAddress) {
3939
final long difficulty = difficultyService.getDifficultyForSourceAddress(siteKey, sourceAddress);
4040
difficultyService.registerRequest(siteKey, sourceAddress);
41-
metricsService.recordChallengeRequest(siteKey, sourceAddress, difficulty);
41+
metricsService.recordChallengeRequest(siteKey, difficulty);
4242
final Altcha.ChallengeOptions options = new Altcha.ChallengeOptions();
4343
options.algorithm = Altcha.Algorithm.SHA256;
4444
options.hmacKey = captchaProperties.hmacKey();

captchaservice-backend/src/main/java/de/muenchen/captchaservice/service/captcha/MetricsService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public MetricsService(MeterRegistry meterRegistry, DifficultyService difficultyS
2929
this.invalidatedPayloadRepository = invalidatedPayloadRepository;
3030
}
3131

32-
public void recordChallengeRequest(String siteKey, SourceAddress sourceAddress, long difficulty) {
32+
public void recordChallengeRequest(String siteKey, long difficulty) {
3333
Counter.builder("captcha.challenge.requests")
3434
.tag("site_key", siteKey)
3535
.tag("difficulty", String.valueOf(difficulty))

0 commit comments

Comments
 (0)