diff options
author | Jorik Schellekens <joriks@matrix.org> | 2019-07-17 13:56:29 +0100 |
---|---|---|
committer | Jorik Schellekens <joriks@matrix.org> | 2019-07-23 16:06:33 +0100 |
commit | d395650bcf567f41415c67671d6b840588912005 (patch) | |
tree | 17ff68febbfc336ee02b7c73d3144062ca14710c /synapse/rest/client | |
parent | Trailing .d (diff) | |
download | synapse-d395650bcf567f41415c67671d6b840588912005.tar.xz |
Use better decorator names.
Diffstat (limited to 'synapse/rest/client')
-rw-r--r-- | synapse/rest/client/v2_alpha/keys.py | 4 | ||||
-rw-r--r-- | synapse/rest/client/v2_alpha/room_keys.py | 2 | ||||
-rw-r--r-- | synapse/rest/client/v2_alpha/sendtodevice.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/synapse/rest/client/v2_alpha/keys.py b/synapse/rest/client/v2_alpha/keys.py index 1f63f0c589..880cf9d6e7 100644 --- a/synapse/rest/client/v2_alpha/keys.py +++ b/synapse/rest/client/v2_alpha/keys.py @@ -69,7 +69,7 @@ class KeyUploadServlet(RestServlet): self.auth = hs.get_auth() self.e2e_keys_handler = hs.get_e2e_keys_handler() - @opentracing.trace_defered_function_using_operation_name("upload_keys") + @opentracing.trace_deferred_using_operation_name("upload_keys") @defer.inlineCallbacks def on_POST(self, request, device_id): requester = yield self.auth.get_user_by_req(request, allow_guest=True) @@ -183,7 +183,7 @@ class KeyChangesServlet(RestServlet): self.auth = hs.get_auth() self.device_handler = hs.get_device_handler() - @opentracing.trace_defered_function + @opentracing.trace_deferred @defer.inlineCallbacks def on_GET(self, request): requester = yield self.auth.get_user_by_req(request, allow_guest=True) diff --git a/synapse/rest/client/v2_alpha/room_keys.py b/synapse/rest/client/v2_alpha/room_keys.py index 2d27e2c914..a9e3875a46 100644 --- a/synapse/rest/client/v2_alpha/room_keys.py +++ b/synapse/rest/client/v2_alpha/room_keys.py @@ -312,7 +312,7 @@ class RoomKeysVersionServlet(RestServlet): self.auth = hs.get_auth() self.e2e_room_keys_handler = hs.get_e2e_room_keys_handler() - @opentracing.trace_defered_function_using_operation_name("get_room_keys_version") + @opentracing.trace_deferred_using_operation_name("get_room_keys_version") @defer.inlineCallbacks def on_GET(self, request, version): """ diff --git a/synapse/rest/client/v2_alpha/sendtodevice.py b/synapse/rest/client/v2_alpha/sendtodevice.py index 8fa190fb13..7245299691 100644 --- a/synapse/rest/client/v2_alpha/sendtodevice.py +++ b/synapse/rest/client/v2_alpha/sendtodevice.py @@ -43,7 +43,7 @@ class SendToDeviceRestServlet(servlet.RestServlet): self.txns = HttpTransactionCache(hs) self.device_message_handler = hs.get_device_message_handler() - @opentracing.trace_defered_function_using_operation_name("sendToDevice") + @opentracing.trace_deferred_using_operation_name("sendToDevice") def on_PUT(self, request, message_type, txn_id): opentracing.set_tag("message_type", message_type) opentracing.set_tag("txn_id", txn_id) |