Skip to content

Commit

Permalink
Merge pull request #89 from FinalDoubleTen/BE-66-Refactor-STOMP
Browse files Browse the repository at this point in the history
Refactor : 경로 계산 로그 추가 + heartbeat 값 수정
  • Loading branch information
Kim-Dong-Jun99 authored Jan 18, 2024
2 parents cd04efd + efc2539 commit 42fd0d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public void registerStompEndpoints(StompEndpointRegistry endpointRegistry) {
@Override
public void configureMessageBroker(MessageBrokerRegistry brokerRegistry) {
brokerRegistry.setApplicationDestinationPrefixes("/pub");
brokerRegistry.enableSimpleBroker("/sub");
brokerRegistry.enableSimpleBroker("/sub").setHeartbeatValue(new long[]{1000, 2000});

}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void calculatePath(TripPlace fromPlace, TripPlace toPlace, List<TripPathI
} else {
pathInfo = odsayComponent.calculatePathInfo(fromPlace.longitude(), fromPlace.latitude(), toPlace.longitude(), toPlace.latitude());
}
log.info("from " + fromPlace.seqNum() + " to " + toPlace.seqNum() + " executionTime : " + ((System.currentTimeMillis() - startTime) / 1000.0));
log.info("from id "+fromPlace.tripItemId()+" to id "+toPlace.tripItemId()+" from seqNum " + fromPlace.seqNum() + " to seqNum " + toPlace.seqNum() + " executionTime : " + ((System.currentTimeMillis() - startTime) / 1000.0));
pathInfoMsgs.add(new TripPathInfoMsg(fromPlace.tripItemId(), toPlace.tripItemId(), fromPlace.seqNum(), toPlace.seqNum(), fromPlace.longitude(), fromPlace.latitude(), toPlace.longitude(), toPlace.latitude(), pathInfo));
}
}

0 comments on commit 42fd0d7

Please sign in to comment.