mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Hopefully fix backfilling
This commit is contained in:
parent
8d207b7a97
commit
f182fd7ee3
|
|
@ -83,7 +83,7 @@ func Backfill(
|
|||
"": eIDs,
|
||||
},
|
||||
ServerName: request.Origin(),
|
||||
VirtualHost: request.Origin(),
|
||||
VirtualHost: request.Destination(),
|
||||
}
|
||||
if req.Limit, err = strconv.Atoi(limit); err != nil {
|
||||
util.GetLogger(httpReq.Context()).WithError(err).Error("strconv.Atoi failed")
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ func (r *Backfiller) PerformBackfill(
|
|||
// TODO: we could be more sensible and fetch as many events we already have then request the rest
|
||||
// which is what the syncapi does already.
|
||||
if r.IsLocalServerName(request.ServerName) {
|
||||
logrus.Debugf("backfilling via federation: %+v", request)
|
||||
return r.backfillViaFederation(ctx, request, response)
|
||||
}
|
||||
// someone else is requesting the backfill, try to service their request.
|
||||
|
|
@ -319,6 +320,7 @@ FederationHit:
|
|||
FedClient: b.fsAPI,
|
||||
RememberAuthEvents: false,
|
||||
Server: srv,
|
||||
Origin: b.virtualHost,
|
||||
}
|
||||
res, err := c.StateIDsBeforeEvent(ctx, targetEvent)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue