mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-20 10:55:09 +03:00
Reduce transaction response size
This commit is contained in:
parent
5e6b5ccd26
commit
dde7110c0d
1 changed files with 4 additions and 1 deletions
|
@ -672,7 +672,10 @@ class FederationServer(FederationBase):
|
||||||
span=span,
|
span=span,
|
||||||
)
|
)
|
||||||
|
|
||||||
defer.returnValue({"did_not_relay": list(dont_relay)})
|
ret = {}
|
||||||
|
if dont_relay:
|
||||||
|
ret = {"did_not_relay": list(dont_relay)}
|
||||||
|
defer.returnValue(ret)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return "<ReplicationLayer(%s)>" % self.server_name
|
return "<ReplicationLayer(%s)>" % self.server_name
|
||||||
|
|
Loading…
Reference in a new issue