From 83e20be7b22e5cabffc6eb72a418183337dc1f3f Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Thu, 9 Mar 2017 14:32:50 +0000 Subject: [PATCH] Replace current with a new StateEntryList rather than individually setting the fields --- .../dendrite/roomserver/storage/state_block_table.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/roomserver/storage/state_block_table.go b/src/github.com/matrix-org/dendrite/roomserver/storage/state_block_table.go index 2febfe434..14fed0f56 100644 --- a/src/github.com/matrix-org/dendrite/roomserver/storage/state_block_table.go +++ b/src/github.com/matrix-org/dendrite/roomserver/storage/state_block_table.go @@ -198,8 +198,7 @@ func (s *stateBlockStatements) bulkSelectFilteredStateBlockEntries( if current.StateEntries != nil { results = append(results, current) } - current.StateBlockNID = types.StateBlockNID(stateBlockNID) - current.StateEntries = nil + current = types.StateEntryList{StateBlockNID: types.StateBlockNID(stateBlockNID)} } current.StateEntries = append(current.StateEntries, entry) }