Skip to content

Commit

Permalink
refactor: 생성자 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoding-play committed Nov 28, 2024
1 parent d79261d commit fe96570
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,11 @@ public class AutomaticMatchingScheduler {
private final AutomaticMatchingExecutor automaticMatchingExecutor;
private final Map<Long, ScheduledFuture<?>> scheduledTasks;

@Autowired
public AutomaticMatchingScheduler(TaskScheduler taskScheduler, AutomaticMatchingExecutor automaticMatchingExecutor) {
this.taskScheduler = taskScheduler;
this.automaticMatchingExecutor = automaticMatchingExecutor;
this.scheduledTasks = new ConcurrentHashMap<>();
this(taskScheduler, automaticMatchingExecutor, new ConcurrentHashMap<>());
}

@Autowired
public AutomaticMatchingScheduler(TaskScheduler taskScheduler, AutomaticMatchingExecutor automaticMatchingExecutor, Map<Long, ScheduledFuture<?>> scheduledTasks) {
this.taskScheduler = taskScheduler;
this.automaticMatchingExecutor = automaticMatchingExecutor;
Expand Down

0 comments on commit fe96570

Please sign in to comment.