Skip to content

Commit

Permalink
feat: remove rlock
Browse files Browse the repository at this point in the history
  • Loading branch information
ohksj77 committed Nov 4, 2024
1 parent f03475c commit a21ba52
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 154 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.dragonguard.backend.global.advice;

import com.dragonguard.backend.global.exception.CronjobException;
import com.dragonguard.backend.global.exception.DistributedLockUnavailableException;
import com.dragonguard.backend.global.exception.EntityNotFoundException;
import com.dragonguard.backend.global.exception.WebClientException;
import com.fasterxml.jackson.databind.exc.MismatchedInputException;
Expand Down Expand Up @@ -53,13 +52,6 @@ public ResponseEntity<ErrorResponse> mismatchedInputException(
.body(new ErrorResponse(e.getMessage()));
}

@ExceptionHandler(DistributedLockUnavailableException.class)
public ResponseEntity<ErrorResponse> distributedLockUnavailableException(
final DistributedLockUnavailableException e) {
return ResponseEntity.status(HttpStatus.BAD_REQUEST)
.body(new ErrorResponse(e.getMessage()));
}

@ExceptionHandler(InterruptedException.class)
public ResponseEntity<ErrorResponse> interruptedException(final InterruptedException e) {
return ResponseEntity.status(HttpStatus.BAD_REQUEST)
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.dragonguard.backend.global.template.service;

import com.dragonguard.backend.domain.member.entity.Member;
import com.dragonguard.backend.global.annotation.DistributedLock;
import com.dragonguard.backend.global.exception.EntityNotFoundException;
import com.dragonguard.backend.global.template.entity.Contribution;
import com.dragonguard.backend.global.template.mapper.ContributionMapper;
Expand All @@ -20,7 +19,6 @@ public abstract class ContributionService<T extends Contribution, ID>
private final ContributionRepository<T, ID> contributionRepository;
private final ContributionMapper<T> contributionMapper;

@DistributedLock(name = "#member.getGithubId().concat(#contributeType.name())")
public void saveContribution(
final Member member,
final Integer contributionNum,
Expand Down

This file was deleted.

0 comments on commit a21ba52

Please sign in to comment.