mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:56:02 -04:00
Replace returnValue with return (#5736)
This commit is contained in:
parent
18a466b84e
commit
4806651744
177 changed files with 1359 additions and 1513 deletions
|
@ -89,7 +89,7 @@ the function becomes the operation name for the span.
|
|||
# We start
|
||||
yield we_wait
|
||||
# we finish
|
||||
defer.returnValue(something_usual_and_useful)
|
||||
return something_usual_and_useful
|
||||
|
||||
Operation names can be explicitly set for functions by using
|
||||
``trace_using_operation_name`` and
|
||||
|
@ -113,7 +113,7 @@ Operation names can be explicitly set for functions by using
|
|||
# We start
|
||||
yield we_wait
|
||||
# we finish
|
||||
defer.returnValue(something_usual_and_useful)
|
||||
return something_usual_and_useful
|
||||
|
||||
Contexts and carriers
|
||||
---------------------
|
||||
|
@ -694,7 +694,7 @@ def trace_servlet(servlet_name, func):
|
|||
},
|
||||
):
|
||||
result = yield defer.maybeDeferred(func, request, *args, **kwargs)
|
||||
defer.returnValue(result)
|
||||
return result
|
||||
|
||||
return _trace_servlet_inner
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue