mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-05 20:44:12 -04:00
Implement device key caching over federation
This commit is contained in:
parent
51e9fe36e4
commit
c974116f19
13 changed files with 381 additions and 57 deletions
|
@ -126,6 +126,16 @@ class FederationClient(FederationBase):
|
|||
destination, content, timeout
|
||||
)
|
||||
|
||||
@log_function
|
||||
def query_user_devices(self, destination, user_id, timeout=30000):
|
||||
"""Query the device keys for a list of user ids hosted on a remote
|
||||
server.
|
||||
"""
|
||||
sent_queries_counter.inc("user_devices")
|
||||
return self.transport_layer.query_user_devices(
|
||||
destination, user_id, timeout
|
||||
)
|
||||
|
||||
@log_function
|
||||
def claim_client_keys(self, destination, content, timeout):
|
||||
"""Claims one-time keys for a device hosted on a remote server.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue