Skip to content

Commit

Permalink
Fix "Streams with subject not found" error when creatind a pull-based…
Browse files Browse the repository at this point in the history
… subscription
  • Loading branch information
corcoja committed Jan 25, 2022
1 parent efaba0a commit 04778e0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ private void startPullBasedConsumerSubscription(Connection connection)
// Create pull subscription options and subscriber itself
PullSubscribeOptions options =
PullSubscribeOptions.builder().durable(consumerConfiguration.getDurable()).build();
JetStreamSubscription subscription = connection.jetStream().subscribe(">", options);
String anySubject = streamConfiguration.getSubjects().stream().findAny().orElse(">");
JetStreamSubscription subscription = connection.jetStream().subscribe(anySubject, options);
PubSubTunnel tunnel = this;
jetstreamSubscription = subscription;

Expand Down

0 comments on commit 04778e0

Please sign in to comment.