Skip to content

Commit

Permalink
[chore] delete unnecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Parkjyun committed Feb 13, 2025
1 parent 76b77cd commit 7fb32da
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ private void getLock(final Connection connection, final String key) {
try (PreparedStatement stmt = connection.prepareStatement(sql)) {
stmt.setString(1, key);
stmt.setInt(2, 3000);
stmt.executeQuery(); // 락 key 획득 시도, 무한 대기
stmt.executeQuery();
} catch (SQLException e) {
throw new CustomException(ErrorMessage.INTERNAL_SERVER_ERROR);
}
Expand All @@ -52,7 +52,7 @@ private void releaseLock(

try (PreparedStatement stmt = connection.prepareStatement(sql)) {
stmt.setString(1, key);
stmt.executeQuery(); // 락 key 해제
stmt.executeQuery();
} catch (SQLException e) {
throw new CustomException(ErrorMessage.INTERNAL_SERVER_ERROR);
}
Expand Down

0 comments on commit 7fb32da

Please sign in to comment.