Skip to content

Commit

Permalink
check style
Browse files Browse the repository at this point in the history
  • Loading branch information
leolinchen committed Feb 22, 2022
1 parent 8119438 commit c4c1a0d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1014,12 +1014,14 @@ protected void handleSubscribe(final CommandSubscribe subscribe) {
subType, priorityLevel, consumerName, isDurable,
startMessageId, metadata,
readCompacted, initialPosition, startMessageRollbackDurationSec,
isReplicated, keySharedMeta, autoShrink));
isReplicated, keySharedMeta,
autoShrink));
} else {
return topic.subscribe(ServerCnx.this, subscriptionName, consumerId,
subType, priorityLevel, consumerName, isDurable,
startMessageId, metadata, readCompacted, initialPosition,
startMessageRollbackDurationSec, isReplicated, keySharedMeta, autoShrink);
startMessageRollbackDurationSec, isReplicated,
keySharedMeta, autoShrink);
}
})
.thenAccept(consumer -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,10 @@ public CompletableFuture<Consumer> subscribe(final TransportCnx cnx, String subs

NonPersistentSubscription subscription = subscriptions.computeIfAbsent(subscriptionName,
name -> new NonPersistentSubscription(this, subscriptionName, isDurable));
Consumer consumer = new Consumer(subscription, subType, topic, consumerId, priorityLevel, consumerName, 0,
cnx, cnx.getAuthRole(), metadata, readCompacted, initialPosition, keySharedMeta, MessageId.latest, autoShrink);
Consumer consumer = new Consumer(subscription, subType, topic, consumerId,
priorityLevel, consumerName, 0,
cnx, cnx.getAuthRole(), metadata, readCompacted, initialPosition,
keySharedMeta, MessageId.latest, autoShrink);
addConsumerToSubscription(subscription, consumer).thenRun(() -> {
if (!cnx.isActive()) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -763,9 +763,11 @@ public CompletableFuture<Consumer> subscribe(final TransportCnx cnx, String subs
: 0;

subscriptionFuture.thenAccept(subscription -> {
Consumer consumer = new Consumer(subscription, subType, topic, consumerId, priorityLevel, consumerName,
Consumer consumer = new Consumer(subscription, subType, topic,
consumerId, priorityLevel, consumerName,
maxUnackedMessages, cnx, cnx.getAuthRole(), metadata,
readCompacted, initialPosition, keySharedMeta, startMessageId, autoShrink);
readCompacted, initialPosition, keySharedMeta,
startMessageId, autoShrink);
addConsumerToSubscription(subscription, consumer).thenAccept(v -> {
checkBackloggedCursors();
if (!cnx.isActive()) {
Expand Down

0 comments on commit c4c1a0d

Please sign in to comment.