Skip to content

Commit

Permalink
Typo fix.
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand committed Dec 19, 2023
1 parent e5a4e10 commit 11fae77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public CompletableFuture<Response> registerConnection() {
public void completeRequest(Response response) {
// A connection response doesn't contain a callback id
int callbackId =
clientState.isInitializing() ? response.getCallbackIdx() : CONNECTION_PROMISE_ID;
clientState.isInitializing() ? CONNECTION_PROMISE_ID : response.getCallbackIdx();
CompletableFuture<Response> future = responses.get(callbackId);
if (future != null) {
future.completeAsync(() -> response);
Expand Down

0 comments on commit 11fae77

Please sign in to comment.