Skip to content

Commit 20fe491

Browse files
authored
Merge pull request #1317 from nats-io/use-full-nuid
Use full NUID for generated consumer names
2 parents 20176ee + abd9e89 commit 20fe491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/nats/client/impl/NatsJetStreamImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ List<String> _getStreamNames(String subjectFilter) throws IOException, JetStream
186186
// General Utils
187187
// ----------------------------------------------------------------------------------------------------
188188
String generateConsumerName() {
189-
return NUID.nextGlobalSequence();
189+
return NUID.nextGlobal();
190190
}
191191

192192
ConsumerConfiguration consumerConfigurationForOrdered(

0 commit comments

Comments
 (0)