Skip to content

Commit 114de7c

Browse files
authored
Merge pull request #627 from rabbitmq/producer-name-less-than-256
Check producer name is less than 256-byte long
2 parents 9a508d0 + 5ecc709 commit 114de7c

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)