Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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