Apply suggestions from code review

Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
This commit is contained in:
Alex Chen 2019-07-31 20:50:43 +08:00 committed by GitHub
parent e88038588e
commit 67571feb03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -604,7 +604,7 @@ func (d *SyncServerDatasource) addRoomDeltaToResponse(
return nil
}
// If full_state=true and since= is already up to date, then we'll have
// If full_state=true and since is already up to date, then we'll have
// state events but no recent events.
prevPDUPos = toPos - 1
} else {
@ -826,7 +826,7 @@ func (d *SyncServerDatasource) getStateDeltasForFullStateSync(
})
}
// get all the state events ever between these two positions
// Get all the state events ever between these two positions
stateNeeded, eventMap, err := d.events.selectStateInRange(ctx, txn, fromPos, toPos)
if err != nil {
return nil, err