Skip to content

Commit

Permalink
fix:called onCompleted to send the response for singleBlock
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Peterson <[email protected]>
  • Loading branch information
mattp-swirldslabs committed Jul 30, 2024
1 parent 001f8a9 commit 684ae3e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ void singleBlock(
"Unary singleBlock gRPC method is not currently running");
singleBlockResponseStreamObserver.onNext(buildSingleBlockNotAvailableResponse());
}

// Complete the response to send the response
singleBlockResponseStreamObserver.onCompleted();
}

static SingleBlockResponse buildSingleBlockResponse(final Block block) {
Expand Down

0 comments on commit 684ae3e

Please sign in to comment.