Skip to content

Commit

Permalink
[fix][broker] fixed the build error for pattern matching variable in …
Browse files Browse the repository at this point in the history
…lower JVM versions (apache#19362)
  • Loading branch information
heesung-sn authored Jan 30, 2023
1 parent 0a8a4d6 commit 0dfbc61
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,8 @@ private CompletableFuture<Consumer> internalSubscribe(final TransportCnx cnx, St
readCompacted, initialPosition, keySharedMeta, startMessageId, consumerEpoch);

return addConsumerToSubscription(subscription, consumer).thenCompose(v -> {
if (subscription instanceof PersistentSubscription persistentSubscription) {
if (subscription instanceof PersistentSubscription) {
PersistentSubscription persistentSubscription = (PersistentSubscription) subscription;
checkBackloggedCursor(persistentSubscription);
}
if (!cnx.isActive()) {
Expand Down

0 comments on commit 0dfbc61

Please sign in to comment.