summary refs log tree commit diff
path: root/synapse/storage/devices.py
diff options
context:
space:
mode:
authorJorik Schellekens <joriks@matrix.org>2019-07-02 17:34:48 +0100
committerJorik Schellekens <joriks@matrix.org>2019-07-23 16:04:02 +0100
commit21940cadf05d6c1fa55c30b7bda07bc6643b7bf2 (patch)
treedfaccd4fdb9e7e77365b54d9d106a9fb46ed4974 /synapse/storage/devices.py
parentTrace device messages. (diff)
downloadsynapse-21940cadf05d6c1fa55c30b7bda07bc6643b7bf2.tar.xz
Update to new access pattern
Diffstat (limited to 'synapse/storage/devices.py')
-rw-r--r--synapse/storage/devices.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/storage/devices.py b/synapse/storage/devices.py

index 4627bc049a..12fa70d416 100644 --- a/synapse/storage/devices.py +++ b/synapse/storage/devices.py
@@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. import logging -from synapse.util.tracerutils import TracerUtil, trace_defered_function +import synapse.util.tracerutils as tracerutils from six import iteritems @@ -300,7 +300,7 @@ class DeviceWorkerStore(SQLBaseStore): def get_device_stream_token(self): return self._device_list_id_gen.get_current_token() - @trace_defered_function + @tracerutils.trace_defered_function @defer.inlineCallbacks def get_user_devices_from_cache(self, query_list): """Get the devices (and keys if any) for remote users from the cache. @@ -332,8 +332,8 @@ class DeviceWorkerStore(SQLBaseStore): else: results[user_id] = yield self._get_cached_devices_for_user(user_id) - TracerUtil.set_tag("in_cache", results) - TracerUtil.set_tag("not_in_cache", user_ids_not_in_cache) + tracerutils.set_tag("in_cache", results) + tracerutils.set_tag("not_in_cache", user_ids_not_in_cache) return (user_ids_not_in_cache, results)