Skip to content

Commit

Permalink
refactor: 10초에 1000개 채팅에서 1초에 100개 채팅 저장하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Curry4182 committed Apr 15, 2024
1 parent 506d723 commit 448471c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ public class ChatCacheAppendScheduler {

private final ChatAppender chatAppender;

@Scheduled(fixedRate = 10000)
@Scheduled(fixedRate = 1000)
public void appendCache() {
List<ChatInfoWithMemberCache> chatInfoWithMemberCaches = chatBufferManager.read(1000);
List<ChatInfoWithMemberCache> chatInfoWithMemberCaches = chatBufferManager.read(100);

if (chatInfoWithMemberCaches.isEmpty()) {
return;
Expand Down

0 comments on commit 448471c

Please sign in to comment.