Skip to content

Commit

Permalink
fix bug: compiler generate multi util method (#996)
Browse files Browse the repository at this point in the history
  • Loading branch information
FredMushZhaoX committed Nov 17, 2023
1 parent 8d0fb09 commit a52b2e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<groupId>com.alipay.sofa</groupId>
<artifactId>sofa-rpc-compiler</artifactId>
<version>0.0.3</version>
<version>0.0.4</version>

<packaging>jar</packaging>

Expand Down
4 changes: 2 additions & 2 deletions compiler/src/main/resources/SofaTripleStub.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ stub = {{serviceName}}Grpc.newStub(channel).build(channel, callOptions);
.{{methodName}}(request, responseObserver);
}

{{/unaryMethods}}

private boolean isNotEmpty(String uniqueId) {
return uniqueId != null && uniqueId.length() > 0;
}
Expand All @@ -81,8 +83,6 @@ stub = {{serviceName}}Grpc.newStub(channel).build(channel, callOptions);
}
return fullMethodName;
}

{{/unaryMethods}}
{{#serverStreamingMethods}}
{{#javaDoc}}
{{{javaDoc}}}
Expand Down

0 comments on commit a52b2e7

Please sign in to comment.