Skip to content

Commit 5ecc709

Browse files
committed
Check producer name is less than 256-byte long
And not less than or equal to 256.
1 parent 9a508d0 commit 5ecc709

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/rabbitmq/stream/impl/Client.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ public Response declarePublisher(byte publisherId, String publisherReference, St
892892
(publisherReference == null || publisherReference.isEmpty()
893893
? 0
894894
: publisherReference.length());
895-
if (publisherReferenceSize > 256) {
895+
if (publisherReferenceSize >= 256) {
896896
throw new IllegalArgumentException(
897897
"If specified, publisher reference must less than 256 characters");
898898
}

0 commit comments

Comments
 (0)