Skip to content

Commit

Permalink
Potential fix for grpc workflow issue pt2
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
  • Loading branch information
RyanLettieri committed Sep 6, 2023
1 parent daaeaec commit 980017f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Dapr.Workflow/WorkflowServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ static GrpcChannel CreateChannel(string address, HttpClient client)

var daprEndpoint = Environment.GetEnvironmentVariable("DAPR_GRPC_ENDPOINT");
if (!String.IsNullOrEmpty(daprEndpoint)) {
GrpcChannelOptions options1 = new() { HttpClient = client};
return GrpcChannel.ForAddress(address, options1);
GrpcChannelOptions options = new() { HttpClient = client};
return GrpcChannel.ForAddress(daprEndpoint, options);
}

var daprPortStr = Environment.GetEnvironmentVariable("DAPR_GRPC_PORT");
Expand All @@ -176,8 +176,8 @@ static GrpcChannel CreateChannel(string address, HttpClient client)
}

}
GrpcChannelOptions options = new() { HttpClient = client};
return GrpcChannel.ForAddress(address, options);
GrpcChannelOptions options1 = new() { HttpClient = client};
return GrpcChannel.ForAddress(address, options1);
}
}
}

0 comments on commit 980017f

Please sign in to comment.