Skip to content

Commit

Permalink
refactor: 중복 코드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
SeonJuuuun committed Mar 9, 2024
1 parent de57354 commit 6524bbc
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions doochul/src/main/java/org/doochul/config/AppConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import java.time.Clock;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.TaskScheduler;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;

@Configuration
Expand All @@ -15,13 +13,6 @@ public Clock clock() {
return Clock.systemDefaultZone();
}

@Bean
public TaskScheduler taskScheduler() {
ThreadPoolTaskScheduler taskScheduler = new ThreadPoolTaskScheduler();
taskScheduler.setPoolSize(10);
return taskScheduler;
}

@Bean
public ThreadPoolTaskScheduler taskScheduler() {
ThreadPoolTaskScheduler scheduler = new ThreadPoolTaskScheduler();
Expand Down

0 comments on commit 6524bbc

Please sign in to comment.