-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[채팅] redis pub/sub을 활용한 채팅 #93
Conversation
private final ObjectMapper objectMapper; | ||
|
||
/** | ||
* redis pub/sub 메시지 처리 listender 설정 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* redis pub/sub 메시지 처리 listender 설정 | |
* redis pub/sub 메시지 처리 listener 설정 |
오타 수정 부탁드립니다.
@@ -39,6 +47,44 @@ public class ChatService { | |||
private final NotificationQuery notificationQuey; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private final NotificationQuery notificationQuey; | |
private final NotificationQuery notificationQuery; |
이전 PR에서 제대로 리뷰 되지 못한 것 같네요. 죄송합니다. 오타 수정 부탁드립니다.
public ChatMessageResponse(long userId, String userName, String content, LocalDateTime sentAt) { | ||
|
||
this.userId = userId; | ||
this.userName = userName; | ||
this.content = content; | ||
this.sentAt = sentAt; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AllArgsConstructor
로 간단히 표현할 수 있을 듯 한데, 직접 생성자를 작성하신 이유가 있을까요?
new ChatMessage(chatRoom, sender, receiver, request.getContent(), request.getSentAt())); | ||
} | ||
|
||
public List<ChatMessageResponse> getChatMessages(long userId, long roomId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ChatService
의 getChatMessages()
와 acceptRequestedChat()
의 경우 명시적인 트랜잭션 선언이 안 되어있는데 그 이유가 궁금합니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
기본적인 부분들을 다 반영된 것 같아, approve 해놓겠습니다.
추후에 더 개선할 점을 같이 논의해보면 좋을 것 같습니다. 고생하셨습니다.
작업 대상
📄 작업 내용
🙋🏻 주의 사항