Skip to content

Commit

Permalink
refactor : 쿼리 저장소를 ThreadLocal을 통해서만 생성할 수 있도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
joon6093 committed Sep 24, 2024
1 parent ae4aa86 commit 1ef6147
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ public final class QueryContext {

private final Map<String, Long> queryCounts = new HashMap<>();

QueryContext() {
}

void incrementQueryCount(final String query) {
queryCounts.put(query, queryCounts.getOrDefault(query, 0L) + 1);
}
Expand Down

0 comments on commit 1ef6147

Please sign in to comment.