Skip to content

Commit

Permalink
[fix][admin] Fix get-publish-rete Admin API handle exception behavior (
Browse files Browse the repository at this point in the history
  • Loading branch information
Demogorgon314 authored Jun 11, 2022
1 parent c4ee109 commit addfbd3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -773,9 +773,10 @@ public void getPublishRate(@Suspended AsyncResponse asyncResponse,
@PathParam("namespace") String namespace) {
validateNamespaceName(property, namespace);
internalGetPublishRateAsync()
.thenAccept(publishRate -> asyncResponse.resume(publishRate))
.thenAccept(asyncResponse::resume)
.exceptionally(ex -> {
log.error("Failed to get publish rate for namespace {}", namespaceName, ex);
resumeAsyncResponseExceptionally(asyncResponse, ex);
return null;
});
}
Expand Down

0 comments on commit addfbd3

Please sign in to comment.