Skip to content

Commit

Permalink
Merge pull request #31 from FinalDoubleTen/BE-66-Refactor-STOMP
Browse files Browse the repository at this point in the history
Be 66 refactor stomp
  • Loading branch information
kdjun99 authored Jan 11, 2024
2 parents 337a117 + f642921 commit f82e819
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

@Component
@RequiredArgsConstructor
Expand All @@ -23,7 +24,7 @@ public class PathComponent {
public TripPathCalculationResult getTripPath(List<TripPlace> tripPlaceList) {
List<PathCalculateRequest> pathCalculateRequests = toPathCalculateRequest(tripPlaceList);
Integer priceSum = 0;
List<TripPathInfoMsg> pathInfoMsgs = new ArrayList<>();
List<TripPathInfoMsg> pathInfoMsgs = new CopyOnWriteArrayList<>();
for (PathCalculateRequest calculateRequest : pathCalculateRequests) {
asyncPathComponent.calculatePath(calculateRequest.from(), calculateRequest.to(), pathInfoMsgs);
}
Expand Down

0 comments on commit f82e819

Please sign in to comment.