Skip to content

Commit

Permalink
remove memory limit code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason918 committed Mar 28, 2022
1 parent f70d880 commit 2b03aef
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1047,13 +1047,11 @@ protected boolean hasPendingBatchReceive() {
}

protected void resetIncomingMessageSize() {
long size = INCOMING_MESSAGES_SIZE_UPDATER.getAndSet(this, 0);
client.getMemoryLimitController().releaseMemory(size);
INCOMING_MESSAGES_SIZE_UPDATER.getAndSet(this, 0);
}

protected void decreaseIncomingMessageSize(final Message<?> message) {
INCOMING_MESSAGES_SIZE_UPDATER.addAndGet(this, -message.size());
client.getMemoryLimitController().releaseMemory(message.size());
}

public long getIncomingMessageSize() {
Expand Down

0 comments on commit 2b03aef

Please sign in to comment.