Skip to content

Commit

Permalink
Merge pull request #8 from wanjunlei/release-1.0
Browse files Browse the repository at this point in the history
fix bug java async function run failed in dapr proxy mode
  • Loading branch information
benjaminhuo authored Mar 9, 2023
2 parents 73321fd + 3401c0b commit 7459992
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion functions-framework-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

<groupId>dev.openfunction.functions</groupId>
<artifactId>functions-framework-api</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
2 changes: 1 addition & 1 deletion functions-framework-invoker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<groupId>dev.openfunction.functions</groupId>
<artifactId>functions-framework-invoker</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>

<properties>
<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ private class Service extends AppCallbackGrpc.AppCallbackImplBase {
private DaprClient daprClient;

public void start(int port) throws Exception {

daprServer = ServerBuilder
.forPort(port)
.addService(Service.this)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ public SynchronizeRuntime(RuntimeContext runtimeContext, Class<?>[] functionClas
@Override
public void start() throws Exception {
// create dapr client when dapr sidecar enabled.
if (System.getenv("DAPR_GRPC_PORT") != null || System.getenv("DAPR_HTTP_PORT") != null) {
if ((runtimeContext.getInputs() != null && !runtimeContext.getInputs().isEmpty()) ||
(runtimeContext.getOutputs() != null && !runtimeContext.getOutputs().isEmpty())) {
daprClient = new DaprClientBuilder().build();
daprClient.waitForSidecar(Runtime.WaitDaprSidecarTimeout);
}
Expand Down

0 comments on commit 7459992

Please sign in to comment.