mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-13 21:02:25 +03:00
Clarify comment
This commit is contained in:
parent
e2fd591d9f
commit
2f11ed9fc1
1 changed files with 3 additions and 0 deletions
|
@ -1544,6 +1544,9 @@ func (d *Database) GetBulkStateContent(ctx context.Context, roomIDs []string, tu
|
|||
if roomInfo == nil || roomInfo.IsStub() {
|
||||
continue
|
||||
}
|
||||
// TODO: This is inefficient as we're loading the _entire_ state, but only care about a subset of it.
|
||||
// This is why GetBulkStateACLs exists. LoadStateAtSnapshotForStringTuples only loads the state we care about,
|
||||
// but is unfortunately not able to load wildcard state keys.
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue