Remove unused annotation

This commit is contained in:
Dave Syer
2024-12-06 08:39:16 +00:00
parent 9b170851d1
commit 413ab2e8a0
3 changed files with 0 additions and 6 deletions

View File

@@ -2,7 +2,6 @@ package com.example.demo;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import com.example.demo.proto.HelloReply;
@@ -25,7 +24,6 @@ public class GrpcServerService extends SimpleGrpc.SimpleImplBase {
}
@Override
@Async
public void streamHello(HelloRequest req, StreamObserver<HelloReply> responseObserver) {
log.info("Hello " + req.getName());
int count = 0;

View File

@@ -5,7 +5,6 @@ import org.apache.commons.logging.LogFactory;
import org.springframework.grpc.sample.proto.HelloReply;
import org.springframework.grpc.sample.proto.HelloRequest;
import org.springframework.grpc.sample.proto.SimpleGrpc;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import io.grpc.stub.StreamObserver;
@@ -30,7 +29,6 @@ public class GrpcServerService extends SimpleGrpc.SimpleImplBase {
}
@Override
@Async
public void streamHello(HelloRequest req, StreamObserver<HelloReply> responseObserver) {
log.info("Hello " + req.getName());
int count = 0;

View File

@@ -5,7 +5,6 @@ import org.apache.commons.logging.LogFactory;
import org.springframework.grpc.sample.proto.HelloReply;
import org.springframework.grpc.sample.proto.HelloRequest;
import org.springframework.grpc.sample.proto.SimpleGrpc;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import io.grpc.stub.StreamObserver;
@@ -24,7 +23,6 @@ public class GrpcServerService extends SimpleGrpc.SimpleImplBase {
}
@Override
@Async
public void streamHello(HelloRequest req, StreamObserver<HelloReply> responseObserver) {
log.info("Hello " + req.getName());
int count = 0;