Skip to content

Commit

Permalink
fix: Fixes an occasional ConstraintViolationException that can only…
Browse files Browse the repository at this point in the history
… be caused by parallel processing of multiple requests from the same IP.
  • Loading branch information
jekutzsche committed Jun 3, 2022
1 parent 5edc228 commit 79e90fb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.Synchronized;
import lombok.Value;
import lombok.extern.slf4j.Slf4j;

Expand Down Expand Up @@ -41,6 +42,7 @@ public void loginSucceeded(String key) {
} catch (EmptyResultDataAccessException e) {}
}

@Synchronized
public void loginFailed(String key) {

var keyHash = DigestUtils.md5Hex(key);
Expand Down

0 comments on commit 79e90fb

Please sign in to comment.