Skip to content

Commit 75f27ba

Browse files
committed
examples: Avoid deprecated generated class
1 parent 32fd329 commit 75f27ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/src/main/java/io/grpc/examples/errorhandling/ErrorHandlingClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public static void main(String [] args) throws Exception {
7171
private ManagedChannel channel;
7272

7373
void run() throws Exception {
74-
server = ServerBuilder.forPort(0).addService(new GreeterGrpc.AbstractGreeter() {
74+
server = ServerBuilder.forPort(0).addService(new GreeterGrpc.GreeterImplBase() {
7575
@Override
7676
public void sayHello(HelloRequest request, StreamObserver<HelloReply> responseObserver) {
7777
responseObserver.onError(Status.INTERNAL

0 commit comments

Comments
 (0)