mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 17:33:09 -06:00
Update comment
This commit is contained in:
parent
982a60a3a0
commit
171724d6f8
|
|
@ -169,8 +169,11 @@ func (rp *RequestPool) currentSyncForUser(req syncRequest, currentPos types.Stre
|
||||||
func (rp *RequestPool) appendAccountData(
|
func (rp *RequestPool) appendAccountData(
|
||||||
data *types.Response, userID string, req syncRequest, currentPos types.StreamPosition,
|
data *types.Response, userID string, req syncRequest, currentPos types.StreamPosition,
|
||||||
) (*types.Response, error) {
|
) (*types.Response, error) {
|
||||||
// TODO: We currently send all account data on every sync response, we should instead send data
|
// TODO: Account data doesn't have a sync position of its own, meaning that
|
||||||
// that has changed on incremental sync responses
|
// account data might be sent multiple time to the client if multiple account
|
||||||
|
// data keys were set between two message. This isn't a huge issue since the
|
||||||
|
// duplicate data doesn't represent a huge quantity of data, but an optimisation
|
||||||
|
// here would be making sure each data is sent only once to the client.
|
||||||
localpart, _, err := gomatrixserverlib.SplitID('@', userID)
|
localpart, _, err := gomatrixserverlib.SplitID('@', userID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue