Skip to content

Commit

Permalink
Improve some code according to code specification (#1191)
Browse files Browse the repository at this point in the history
  • Loading branch information
po-168 authored Nov 14, 2024
1 parent 4c5eb7b commit 2154592
Show file tree
Hide file tree
Showing 37 changed files with 171 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public org.apache.dubbo.samples.tri.unary.GreeterReply greet(org.apache.dubbo.sa
return StubInvocationUtil.unaryCall(invoker, greetMethod, request);
}

@Override
public CompletableFuture<org.apache.dubbo.samples.tri.unary.GreeterReply> greetAsync(org.apache.dubbo.samples.tri.unary.GreeterRequest request){
return StubInvocationUtil.unaryCall(invoker, greetAsyncMethod, request);
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public GreeterReply greet(GreeterRequest request) {
.setMessage("hello," + request.getName())
.build();
}
@Override
public CompletableFuture<GreeterReply> greetAsync(GreeterRequest request){
return CompletableFuture.completedFuture(greet(request));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public org.apache.dubbo.springboot.demo.idl.GreeterReply greet(org.apache.dubbo.
return StubInvocationUtil.unaryCall(invoker, greetMethod, request);
}

@Override
public CompletableFuture<org.apache.dubbo.springboot.demo.idl.GreeterReply> greetAsync(org.apache.dubbo.springboot.demo.idl.GreeterRequest request){
return StubInvocationUtil.unaryCall(invoker, greetAsyncMethod, request);
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public org.apache.dubbo.springboot.demo.idl.GreeterReply greet(org.apache.dubbo.
return StubInvocationUtil.unaryCall(invoker, greetMethod, request);
}

@Override
public CompletableFuture<org.apache.dubbo.springboot.demo.idl.GreeterReply> greetAsync(org.apache.dubbo.springboot.demo.idl.GreeterRequest request){
return StubInvocationUtil.unaryCall(invoker, greetAsyncMethod, request);
}
Expand Down
Loading

0 comments on commit 2154592

Please sign in to comment.