Skip to content

Commit

Permalink
feat: 기본 CountService를 LongAdder로 변경
Browse files Browse the repository at this point in the history
- 불안정한 DivideCountTestService 대신 LongAdderCountTestService를 사용하도록 변경
  • Loading branch information
miiiinju1 committed Aug 15, 2024
1 parent d454429 commit 3ff54a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package info.logbat.dev.service;

import info.logbat.dev.util.ThreadLocalLongAdder;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

@Primary
@Component
public class DivideCountTestService implements CountTestService {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package info.logbat.dev.service;

import org.springframework.stereotype.Component;

import java.util.concurrent.atomic.LongAdder;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

@Primary
@Component
public class LongAdderCountTestService implements CountTestService {

Expand Down

0 comments on commit 3ff54a0

Please sign in to comment.