diff options
Diffstat (limited to 'grpc/grpc-client')
-rw-r--r-- | grpc/grpc-client/src/main/java/org/open/infc/grpc/client/OpenRemoteCli.java | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/grpc/grpc-client/src/main/java/org/open/infc/grpc/client/OpenRemoteCli.java b/grpc/grpc-client/src/main/java/org/open/infc/grpc/client/OpenRemoteCli.java index 724267e8..1875a761 100644 --- a/grpc/grpc-client/src/main/java/org/open/infc/grpc/client/OpenRemoteCli.java +++ b/grpc/grpc-client/src/main/java/org/open/infc/grpc/client/OpenRemoteCli.java @@ -44,8 +44,7 @@ public class OpenRemoteCli { OpenInterfaceGrpcClient client = new OpenInterfaceGrpcClient( host, port, timeout); try { - Result result = client.remoteCli(Args.newBuilder().setRequestId(this.requestId).addAllArgs(args).build()); - return result; + return client.remoteCli(Args.newBuilder().setRequestId(this.requestId).addAllArgs(args).build()); } finally { client.shutdown(); } @@ -63,8 +62,7 @@ public class OpenRemoteCli { params.put("format", "json"); Input input = Input.newBuilder().setAction(action).setRequestId(requestId).putAllOptions(options).putAllParams(params).build(); - Output output = client.invoke(input); - return output; + return client.invoke(input); } finally { client.shutdown(); } @@ -86,8 +84,7 @@ public class OpenRemoteCli { host, port); try { - Result result = client.remoteCli(Args.newBuilder().setRequestId(reqId).addAllArgs(args).build()); - return result; + return client.remoteCli(Args.newBuilder().setRequestId(reqId).addAllArgs(args).build()); } finally { client.shutdown(); } @@ -117,8 +114,7 @@ public class OpenRemoteCli { params.put("format", "json"); Input input = Input.newBuilder().setAction(action).setRequestId(reqId).putAllOptions(options).putAllParams(params).build(); - Output output = client.invoke(input); - return output; + return client.invoke(input); } finally { client.shutdown(); } |