Skip to content

Commit

Permalink
Update pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/imp…
Browse files Browse the repository at this point in the history
…l/PersistentTopicsBase.java


thenAccept is better than thenCompose.

Co-authored-by: lipenghui <[email protected]>
  • Loading branch information
HQebupt and codelipenghui authored Jan 29, 2022
1 parent 768ce72 commit 759504d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2526,7 +2526,7 @@ protected void internalPeekNthMessage(AsyncResponse asyncResponse, String subNam
}
return entry;
})
.thenCompose(entry -> {
.thenAccept(entry -> {
if (entry != null) {
try {
Response response = generateResponseWithEntry(entry);
Expand Down

0 comments on commit 759504d

Please sign in to comment.