Skip to content
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

Feat/#136 채팅 만료 이벤트 핸들러 추가 #138

Merged
merged 12 commits into from
Jul 30, 2024

Conversation

coke98
Copy link
Contributor

@coke98 coke98 commented Jul 27, 2024

🤨 Motivation

🔑 Key Changes

  • 만료 이벤트 수신시 모든 채팅방 상태 CLOSED로 업데이트
  • 만료 이벤트 수신시 모든 채팅참가자 리스트 삭제
  • 매칭 도메인 이벤트 파라미터 수정으로 인한 코드 수정

🙏 To Reviewers

@coke98 coke98 requested review from mjj111 and suhyun0918 July 27, 2024 07:27
@coke98 coke98 self-assigned this Jul 27, 2024
@coke98 coke98 changed the base branch from main to develop July 27, 2024 07:28
Copy link
Collaborator

@suhyun0918 suhyun0918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@coke98
제가 이벤트 발행 코드를 만들어 놓고는 깜빡하고 이벤트 수신 코드를 작성해달라고 말씀을 못드렸네요 !
:(

뒤늦게 업무 부담을 드리게되어 죄송합니다! ㅠㅠ

+++
알맞게 수정해주셔서 감사합니다!
고생 많으셨습니다!

Comment on lines +30 to +31
public void expireChatRoom() {
eventPublisher.publishEvent(new ChatRoomExpireEvent());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

직접 수정해주셔서 감사합니다!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

List matchingResults를 이벤트로 전송하지 않으니,
매칭 로직중 메모리 절약도 생각할 수 있겠네요! 👍

import java.util.Set;

public record ChatRoomExpireEvent(Set<MemberPair> matchedPairs) {
public record ChatRoomExpireEvent() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

레코드가 비어있어도 정상적으로 이벤트가 발송되는 사실을 처음 알았습니다!
고생하셨습니다!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

클래스 메타정보로 이벤트를 식별하는군요! 👍

Copy link
Member

@mjj111 mjj111 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다 👍

import java.util.Set;

public record ChatRoomExpireEvent(Set<MemberPair> matchedPairs) {
public record ChatRoomExpireEvent() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

클래스 메타정보로 이벤트를 식별하는군요! 👍

Comment on lines +30 to +31
public void expireChatRoom() {
eventPublisher.publishEvent(new ChatRoomExpireEvent());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

List matchingResults를 이벤트로 전송하지 않으니,
매칭 로직중 메모리 절약도 생각할 수 있겠네요! 👍

@coke98 coke98 merged commit 4c02138 into develop Jul 30, 2024
1 check passed
@coke98 coke98 mentioned this pull request Jul 30, 2024
@mjj111 mjj111 added the feat 기능 개발 이슈 label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat 기능 개발 이슈
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants