Skip to content

Commit

Permalink
feature: Added Get Block. Refined getBlock()
Browse files Browse the repository at this point in the history
  • Loading branch information
a-saksena committed Jun 25, 2024
1 parent 28e363e commit f45ce74
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

import java.util.logging.Logger;

import static io.helidon.webserver.grpc.ResponseHelper.complete;


public class BlockStreamService implements GrpcService {

Expand All @@ -30,7 +32,10 @@ public void update(Routing routing) {
// @Override void invoke(ReqT request, StreamObserver<RespT> responseObserver);

private void getBlock(BlockStreamServiceGrpcProto.BlockRequest request, StreamObserver<BlockStreamServiceGrpcProto.Block> responseObserver) {
String message = "GET BLOCK RESPONSE! ";
logger.info("GetBlock request received");
BlockStreamServiceGrpcProto.Block response = BlockStreamServiceGrpcProto.Block.newBuilder().setValue(message).build();
complete(responseObserver, response);
}


Expand Down

0 comments on commit f45ce74

Please sign in to comment.