Reduce transaction response size

This commit is contained in:
Erik Johnston 2018-11-29 11:49:38 +00:00 committed by Brendan Abolivier
parent 5e6b5ccd26
commit dde7110c0d

View file

@ -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