From 67571feb036568fcfa362b1a46d6c489066b5449 Mon Sep 17 00:00:00 2001 From: Alex Chen Date: Wed, 31 Jul 2019 20:50:43 +0800 Subject: [PATCH] Apply suggestions from code review Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> --- syncapi/storage/syncserver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syncapi/storage/syncserver.go b/syncapi/storage/syncserver.go index 3f3101670..5f0930c11 100644 --- a/syncapi/storage/syncserver.go +++ b/syncapi/storage/syncserver.go @@ -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