Skip to content

Commit

Permalink
[#123] Chore: 채팅 정렬 주석 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
tkguswls1106 committed Jun 2, 2024
1 parent 21bce5a commit 1de3d83
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public Slice<ChatResponseDto> findChatsByRoom(Long roomId, Pageable pageable) {
else chatSlice = chatRepository.findAllByRoomId(roomId, pageable);

// DESC로 가져온 데이터를 다시 오름차순으로 페이지별 정렬
List<Chat> reversedChatList = new ArrayList<>(chatSlice.getContent()); // 새로운 리스트로 만듦으로써 불변 해제.
List<Chat> reversedChatList = new ArrayList<>(chatSlice.getContent()); // 새로운 리스트로 만듦으로써 불변성 해제.
Collections.reverse(reversedChatList);

// 사용자 캐싱을 위한 맵 생성 (이미 검색한것은 다시 검색하지않도록 성능 향상)
Expand Down

0 comments on commit 1de3d83

Please sign in to comment.