duplicate binding info fix (#1180)
This commit is contained in:
Родитель
830d35ca4c
Коммит
1cc98c0424
|
@ -60,12 +60,6 @@ namespace Microsoft.Azure.Functions.Worker
|
|||
foreach (var binding in rawBindings.EnumerateArray())
|
||||
{
|
||||
functionMetadata.RawBindings.Add(binding.GetRawText());
|
||||
|
||||
BindingInfo bindingInfo = FunctionMetadataRpcExtensions.CreateBindingInfo(binding);
|
||||
|
||||
binding.TryGetProperty("name", out JsonElement jsonName);
|
||||
|
||||
functionMetadata.Bindings.Add(jsonName.ToString(), bindingInfo);
|
||||
}
|
||||
|
||||
functionMetadataResults.Add(functionMetadata);
|
||||
|
|
|
@ -261,7 +261,8 @@ namespace Microsoft.Azure.Functions.Worker
|
|||
_ => BuildRpc(func),
|
||||
};
|
||||
|
||||
// add BindingInfo
|
||||
// add BindingInfo here instead of in the providers
|
||||
// because we need access to gRPC types in proto-file and source-gen won't have access
|
||||
rpcFuncMetadata.Bindings.Add(func.GetBindingInfoList());
|
||||
|
||||
response.FunctionMetadataResults.Add(rpcFuncMetadata);
|
||||
|
|
Загрузка…
Ссылка в новой задаче