File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
azure_functions_worker/bindings Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -300,19 +300,19 @@ def deferred_bindings_decode(binding: typing.Any,
300
300
"""
301
301
global deferred_bindings_cache
302
302
303
+ # Only applies to Event Hub and Service Bus - cannot cache
303
304
if datum .type == "collection_model_binding_data" :
304
- # Accumulates each model_binding_data content in collection_model_binding_data
305
- content = "" .join (str (mbd .content ) for mbd in datum .value .model_binding_data )
306
- else :
307
- content = datum .value .content
305
+ return binding .decode (datum ,
306
+ trigger_metadata = metadata ,
307
+ pytype = pytype )
308
308
309
309
if deferred_bindings_cache .get ((pb .name ,
310
310
pytype ,
311
- content ,
311
+ datum . value . content ,
312
312
function_name ), None ) is not None :
313
313
return deferred_bindings_cache .get ((pb .name ,
314
314
pytype ,
315
- content ,
315
+ datum . value . content ,
316
316
function_name ))
317
317
else :
318
318
deferred_binding_type = binding .decode (datum ,
@@ -321,7 +321,7 @@ def deferred_bindings_decode(binding: typing.Any,
321
321
322
322
deferred_bindings_cache [(pb .name ,
323
323
pytype ,
324
- content ,
324
+ datum . value . content ,
325
325
function_name )] = deferred_binding_type
326
326
return deferred_binding_type
327
327
You can’t perform that action at this time.
0 commit comments