Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vernedeng committed Nov 26, 2024
1 parent 35b6b4c commit 8b23d2b
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,12 @@ public void sendDirtyMessageSync(DirtyMessageWrapper messageWrapper) throws Inte
dirtyDataQueue.put(messageWrapper);
}

public void sendDirtyMessageAsync(DirtyMessageWrapper messageWrapper) throws InterruptedException {
if(!dirtyDataQueue.offer(messageWrapper)) {
log.warn("the dirty data queue is full, you can increase the size of queue by configure maxCallbackSize");
public boolean sendDirtyMessageAsync(DirtyMessageWrapper messageWrapper) {
boolean result = dirtyDataQueue.offer(messageWrapper);
if (!result) {
log.warn("send dirty message async queue is full, you can increase maxCallbackSize");
}
return result;
}

private void doSendDirtyMessage() {
Expand Down

0 comments on commit 8b23d2b

Please sign in to comment.