Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36bcecd commit 44dbb89Copy full SHA for 44dbb89
zerorpc/core.py
@@ -405,9 +405,9 @@ def fork_task_context(functor, context=None):
405
- if the new task will make any zerorpc call, it should be wrapped.
406
'''
407
context = context or Context.get_instance()
408
- header = context.hook_get_task_context()
+ xheader = context.hook_get_task_context()
409
410
def wrapped(*args, **kargs):
411
- context.hook_load_task_context(header)
+ context.hook_load_task_context(xheader)
412
return functor(*args, **kargs)
413
return wrapped
0 commit comments