Don't return anything from _handle_new_pdu, since we ignore the return value anyway

This commit is contained in:
Erik Johnston 2015-02-16 14:08:02 +00:00
parent a5ad6f862c
commit 6138584651
1 changed files with 1 additions and 4 deletions

View File

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