mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 18:30:24 +00:00
More comments
This commit is contained in:
parent
d3d0be4167
commit
8be1a37909
1 changed files with 6 additions and 0 deletions
|
@ -280,6 +280,10 @@ class FederationHandler(BaseHandler):
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def backfill(self, dest, room_id, limit, extremities=[]):
|
def backfill(self, dest, room_id, limit, extremities=[]):
|
||||||
""" Trigger a backfill request to `dest` for the given `room_id`
|
""" Trigger a backfill request to `dest` for the given `room_id`
|
||||||
|
|
||||||
|
This will attempt to get more events from the remote. This may return
|
||||||
|
be successfull and still return no events if the other side has no new
|
||||||
|
events to offer.
|
||||||
"""
|
"""
|
||||||
if dest == self.server_name:
|
if dest == self.server_name:
|
||||||
raise SynapseError(400, "Can't backfill from self.")
|
raise SynapseError(400, "Can't backfill from self.")
|
||||||
|
@ -474,6 +478,8 @@ class FederationHandler(BaseHandler):
|
||||||
limit=100,
|
limit=100,
|
||||||
extremities=[e for e in extremities.keys()]
|
extremities=[e for e in extremities.keys()]
|
||||||
)
|
)
|
||||||
|
# If this succeeded then we probably already have the
|
||||||
|
# appropriate stuff.
|
||||||
defer.returnValue(True)
|
defer.returnValue(True)
|
||||||
except SynapseError as e:
|
except SynapseError as e:
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|
Loading…
Reference in a new issue