Skip to content

Commit

Permalink
Revert "Only pull state we actually need"
Browse files Browse the repository at this point in the history
This reverts commit 44c52a2.
  • Loading branch information
S7evinK committed Dec 19, 2024
1 parent ece014d commit e0b1539
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions roomserver/storage/shared/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -1487,9 +1487,7 @@ func (d *Database) GetBulkStateContent(ctx context.Context, roomIDs []string, tu
if roomInfo == nil || roomInfo.IsStub() {
continue
}
// We don't need a querier here, as we don't actually do state resolution
res := state.NewStateResolution(d, roomInfo, nil)
entries, err2 := res.LoadStateAtSnapshotForStringTuples(ctx, roomInfo.StateSnapshotNID(), tuples)
entries, err2 := d.loadStateAtSnapshot(ctx, roomInfo.StateSnapshotNID())
if err2 != nil {
return nil, fmt.Errorf("GetBulkStateContent: failed to load state for room %s : %w", roomID, err2)
}
Expand Down

0 comments on commit e0b1539

Please sign in to comment.