Skip to content

Commit

Permalink
Check write byte buffer size
Browse files Browse the repository at this point in the history
Fixes #1309
  • Loading branch information
acogoluegnes committed May 13, 2024
1 parent 8d77cd6 commit 73f0ab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/rabbitmq/client/impl/nio/NioParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public int getWriteByteBufferSize() {
* @return this {@link NioParams} instance
*/
public NioParams setWriteByteBufferSize(int writeByteBufferSize) {
if (readByteBufferSize <= 0) {
if (writeByteBufferSize <= 0) {
throw new IllegalArgumentException("Buffer size must be greater than 0");
}
this.writeByteBufferSize = writeByteBufferSize;
Expand Down

0 comments on commit 73f0ab8

Please sign in to comment.