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 Apr 1, 2022
1 parent 99e6099 commit db678d9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1048,13 +1048,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 db678d9

Please sign in to comment.