mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 14:33:10 -06:00
More comments
This commit is contained in:
parent
f00b7723ca
commit
d56244549a
|
|
@ -174,6 +174,10 @@ func (rp *RequestPool) currentSyncForUser(req syncRequest) (*types.Response, err
|
||||||
// Servers advance state events (e.g from D' to D'') based on the state conflict resolution algorithm.
|
// Servers advance state events (e.g from D' to D'') based on the state conflict resolution algorithm.
|
||||||
// You might think that you could advance the current state by just updating the entry for the (event type, state_key) tuple
|
// You might think that you could advance the current state by just updating the entry for the (event type, state_key) tuple
|
||||||
// for each state event, but this state can diverge from the state calculated using the state conflict resolution algorithm.
|
// for each state event, but this state can diverge from the state calculated using the state conflict resolution algorithm.
|
||||||
|
// For example, if there are two "simultaneous" updates to the same state key, that is two updates at the same depth in the
|
||||||
|
// event graph, then the final result of the state conflict resolution algorithm might not match the order the events appear
|
||||||
|
// in the timeline.
|
||||||
|
//
|
||||||
// The correct advancement for state events is represented by the add_state_ids and remove_state_ids that
|
// The correct advancement for state events is represented by the add_state_ids and remove_state_ids that
|
||||||
// are in OutputRoomEvents from the room server.
|
// are in OutputRoomEvents from the room server.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue