Skip to content

Commit

Permalink
Fix some typos of the PersistentTopics
Browse files Browse the repository at this point in the history
  • Loading branch information
codelipenghui committed Jul 2, 2021
1 parent 86b8bde commit f839d2e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,6 @@ public void deleteMaxUnackedMessagesOnSubscription(@Suspended final AsyncRespons
@ApiParam(value = "Is authentication required to perform this operation")
@QueryParam("authoritative") @DefaultValue("false") boolean authoritative) {
validateTopicName(tenant, namespace, encodedTopic);
validateTopicName(tenant, namespace, encodedTopic);
validateTopicPolicyOperation(topicName, PolicyName.MAX_UNACKED, PolicyOperation.WRITE);
preValidation(authoritative)
.thenCompose(__ -> internalSetMaxUnackedMessagesOnSubscription(null))
Expand Down Expand Up @@ -1767,7 +1766,7 @@ public void removeDeduplication(@Suspended final AsyncResponse asyncResponse,
.thenCompose(__ -> internalSetDeduplication(null))
.thenRun(() -> asyncResponse.resume(Response.noContent().build()))
.exceptionally(ex -> {
handleTopicPolicyException("setDeduplication", ex, asyncResponse);
handleTopicPolicyException("removeDeduplication", ex, asyncResponse);
return null;
});
}
Expand Down Expand Up @@ -1858,7 +1857,7 @@ public void removeRetention(@Suspended final AsyncResponse asyncResponse,
asyncResponse.resume(Response.noContent().build());
})
.exceptionally(ex -> {
handleTopicPolicyException("setRetention", ex, asyncResponse);
handleTopicPolicyException("removeRetention", ex, asyncResponse);
return null;
});
}
Expand Down

0 comments on commit f839d2e

Please sign in to comment.