Don't return anything from _handle_new_pdu, since we ignore the return value anyway
This commit is contained in:
parent
a5ad6f862c
commit
6138584651
|
@ -331,7 +331,6 @@ class FederationServer(FederationBase):
|
||||||
)
|
)
|
||||||
if already_seen:
|
if already_seen:
|
||||||
logger.debug("Already seen pdu %s", pdu.event_id)
|
logger.debug("Already seen pdu %s", pdu.event_id)
|
||||||
defer.returnValue({})
|
|
||||||
return
|
return
|
||||||
|
|
||||||
# Check signature.
|
# Check signature.
|
||||||
|
@ -418,7 +417,7 @@ class FederationServer(FederationBase):
|
||||||
except:
|
except:
|
||||||
logger.warn("Failed to get state for event: %s", pdu.event_id)
|
logger.warn("Failed to get state for event: %s", pdu.event_id)
|
||||||
|
|
||||||
ret = yield self.handler.on_receive_pdu(
|
yield self.handler.on_receive_pdu(
|
||||||
origin,
|
origin,
|
||||||
pdu,
|
pdu,
|
||||||
backfilled=False,
|
backfilled=False,
|
||||||
|
@ -426,8 +425,6 @@ class FederationServer(FederationBase):
|
||||||
auth_chain=auth_chain,
|
auth_chain=auth_chain,
|
||||||
)
|
)
|
||||||
|
|
||||||
defer.returnValue(ret)
|
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return "<ReplicationLayer(%s)>" % self.server_name
|
return "<ReplicationLayer(%s)>" % self.server_name
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue