summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-05-08 15:33:57 +0100
committerErik Johnston <erik@matrix.org>2017-05-08 15:33:57 +0100
commitfc6d4974a60a0d47492f5c5c8dff45abbf9abe03 (patch)
tree8aed189c7ded4d40f5252e7844eb300d14e06871
parentCache check to see if device exists (diff)
downloadsynapse-fc6d4974a60a0d47492f5c5c8dff45abbf9abe03.tar.xz
Comment
-rw-r--r--synapse/storage/devices.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/devices.py b/synapse/storage/devices.py
index fc87c92182..6727861eb5 100644
--- a/synapse/storage/devices.py
+++ b/synapse/storage/devices.py
@@ -29,6 +29,8 @@ class DeviceStore(SQLBaseStore):
     def __init__(self, hs):
         super(DeviceStore, self).__init__(hs)
 
+        # Map of (user_id, device_id) -> bool. If there is an entry that implies
+        # the device exists.
         self.device_id_exists_cache = Cache(
             name="device_id_exists",
             keylen=2,