Skip to content

Commit

Permalink
Remove streaming endpoint for NodesInfoService
Browse files Browse the repository at this point in the history
Signed-off-by: Finn Carroll <[email protected]>
  • Loading branch information
finnegancarroll committed Nov 15, 2024
1 parent 26e8e1a commit b8d88d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,7 @@ public void getNodesInfo(NodesInfoProtoService.NodesInfoRequestProto request, St
responseObserver.onNext(respToProto(response));
responseObserver.onCompleted();
}

@Override
public void streamNodesInfo(NodesInfoProtoService.NodesInfoRequestProto request, StreamObserver<NodesInfoProtoService.NodesInfoResponseProto> responseObserver) {
responseObserver.onError(
Status.UNIMPLEMENTED.withDescription("Method StreamNodesInfo is not implemented").asRuntimeException()
);
}


private static NodesInfoRequest reqFromProto(NodesInfoProtoService.NodesInfoRequestProto request) {
String[] nodeIds = request.getNodeIdsList().toArray(new String[0]);
NodesInfoRequest nodesInfoRequest = new NodesInfoRequest(nodeIds);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ message NodesInfoResponseProto {

service NodesInfoService {
rpc GetNodesInfo(NodesInfoRequestProto) returns (NodesInfoResponseProto) {}
rpc StreamNodesInfo(NodesInfoRequestProto) returns (stream NodesInfoResponseProto) {}
}

0 comments on commit b8d88d2

Please sign in to comment.