From 2763649fed8f3209713b48a525af1a323bfbc0e3 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Mon, 6 Mar 2017 18:07:43 +0000 Subject: [PATCH] Fix comments --- .../matrix-org/dendrite/roomserver/input/state.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/roomserver/input/state.go b/src/github.com/matrix-org/dendrite/roomserver/input/state.go index 9e27cd723..29ede2253 100644 --- a/src/github.com/matrix-org/dendrite/roomserver/input/state.go +++ b/src/github.com/matrix-org/dendrite/roomserver/input/state.go @@ -61,7 +61,7 @@ func calculateAndStoreStateAfterEvents(db RoomEventDatabase, roomNID types.RoomN ) } // If there are too many deltas then we need to calculate the full state - // So fall through to calculateAndStoreStateMany + // So fall through to calculateAndStoreStateAfterManyEvents } return calculateAndStoreStateAfterManyEvents(db, roomNID, prevStates) } @@ -185,7 +185,7 @@ func loadStateAtSnapshot(db RoomEventDatabase, stateNID types.StateSnapshotNID) stateEntriesMap := stateEntryListMap(stateEntryLists) // Combined all the state entries for this snapshot. - // The order of state data NIDs in the list tells us the order to combine them in. + // The order of state block NIDs in the list tells us the order to combine them in. var fullState []types.StateEntry for _, stateBlockNID := range stateBlockNIDList.StateBlockNIDs { entries, ok := stateEntriesMap.lookup(stateBlockNID) @@ -248,7 +248,7 @@ func loadCombinedStateAfterEvents(db RoomEventDatabase, prevStates []types.State } // Combined all the state entries for this snapshot. - // The order of state data NIDs in the list tells us the order to combine them in. + // The order of state block NIDs in the list tells us the order to combine them in. var fullState []types.StateEntry for _, stateBlockNID := range stateBlockNIDs { entries, ok := stateEntriesMap.lookup(stateBlockNID)