mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 14:33:10 -06:00
rename 'list' to be marginally more helpful
This commit is contained in:
parent
437f2980d5
commit
8526277736
|
|
@ -105,7 +105,7 @@ func calculateAndStoreStateMany(db RoomEventDatabase, roomNID types.RoomNID, pre
|
||||||
var combined []types.StateEntry
|
var combined []types.StateEntry
|
||||||
for _, prevState := range prevStates {
|
for _, prevState := range prevStates {
|
||||||
// Grab the list of state data NIDs for this snapshot.
|
// Grab the list of state data NIDs for this snapshot.
|
||||||
list, ok := stateBlockNIDsMap.lookup(prevState.BeforeStateSnapshotNID)
|
stateBlockNIDs, ok := stateBlockNIDsMap.lookup(prevState.BeforeStateSnapshotNID)
|
||||||
if !ok {
|
if !ok {
|
||||||
// This should only get hit if the database is corrupt.
|
// This should only get hit if the database is corrupt.
|
||||||
// It should be impossible for an event to reference a NID that doesn't exist
|
// It should be impossible for an event to reference a NID that doesn't exist
|
||||||
|
|
@ -115,7 +115,7 @@ func calculateAndStoreStateMany(db RoomEventDatabase, roomNID types.RoomNID, pre
|
||||||
// Combined all the state entries for this snapshot.
|
// 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 data NIDs in the list tells us the order to combine them in.
|
||||||
var fullState []types.StateEntry
|
var fullState []types.StateEntry
|
||||||
for _, stateBlockNID := range list {
|
for _, stateBlockNID := range stateBlockNIDs {
|
||||||
entries, ok := stateEntriesMap.lookup(stateBlockNID)
|
entries, ok := stateEntriesMap.lookup(stateBlockNID)
|
||||||
if !ok {
|
if !ok {
|
||||||
// This should only get hit if the database is corrupt.
|
// This should only get hit if the database is corrupt.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue