Browse Source

Fixup docs

Erik Johnston 4 years ago
parent
commit
35f9165e96
2 changed files with 6 additions and 2 deletions
  1. 1 1
      changelog.d/6332.bugfix
  2. 5 1
      synapse/replication/http/devices.py

+ 1 - 1
changelog.d/6332.bugfix

@@ -1 +1 @@
-Fix caching devices for remote users when using workers.
+Fix caching devices for remote users when using workers, so that we don't attempt to refetch (and potentially fail) each time a user requests devices.

+ 5 - 1
synapse/replication/http/devices.py

@@ -21,7 +21,11 @@ logger = logging.getLogger(__name__)
 
 
 class ReplicationUserDevicesResyncRestServlet(ReplicationEndpoint):
-    """Notifies that a user has joined or left the room
+    """Ask master to resync the device list for a user by contacting their
+    server.
+
+    This must happen on master so that the results can be correctly cached in
+    the database and streamed to workers.
 
     Request format: