Skip to content

Commit

Permalink
Merge pull request #68 from catchroom/develop
Browse files Browse the repository at this point in the history
style : ์‹œ๊ฐ„ ํ™•์ธ์šฉ ์—๋Ÿฌ ๋กœ๊ทธ ์ถ”๊ฐ€
  • Loading branch information
sungjiwoon authored Jan 26, 2024
2 parents 5939004 + 25cb4fb commit 62d95c6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ public String getRoomId(String destination) {
* ์ฑ„ํŒ…๋ฐฉ์— ๋ฉ”์‹œ์ง€ ๋ฐœ์†ก
*/
public void sendChatMessage(ChatMessageDto chatMessage, String accessToken) {

Long before = System.currentTimeMillis();

chatRoomRedisRepository.setLastChatMessage(chatMessage.getRoomId(), chatMessage);

if (chatMessage.getType().equals(MessageType.DELETE)) {
Expand All @@ -54,6 +57,9 @@ public void sendChatMessage(ChatMessageDto chatMessage, String accessToken) {
.list(chatRoomListGetResponseList)
.build();

Long after = System.currentTimeMillis() - before;
log.error("message Time : {}", after);

redisPublisher.publish(messageSubDto);
}

Expand Down

0 comments on commit 62d95c6

Please sign in to comment.