mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-18 12:23:09 -06:00
Handle extremities after inserting event into topology
This commit is contained in:
parent
40495491cb
commit
61d488611e
|
|
@ -172,11 +172,11 @@ func (d *SyncServerDatasource) WriteEvent(
|
||||||
}
|
}
|
||||||
pduPosition = pos
|
pduPosition = pos
|
||||||
|
|
||||||
if err = d.handleBackwardExtremities(ctx, ev); err != nil {
|
if err = d.topology.insertEventInTopology(ctx, ev); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err = d.topology.insertEventInTopology(ctx, ev); err != nil {
|
if err = d.handleBackwardExtremities(ctx, ev); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue