mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-02 22:22:46 +00:00
Fix empty state snapshots
This commit is contained in:
parent
a799847070
commit
b7cf702a14
4 changed files with 5 additions and 9 deletions
|
@ -215,7 +215,7 @@ func (d *Database) StateEntries(
|
|||
) ([]types.StateEntry, error) {
|
||||
nids, err := d.StateTable.BulkSelectState(ctx, []types.StateSnapshotNID{stateSnapshotNID})
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("d.StateTable.BulkSelectState: %w", err)
|
||||
return nil, fmt.Errorf("d.StateTable.BulkSelectState: %w (ID %d)", err, stateSnapshotNID)
|
||||
}
|
||||
state, ok := nids[stateSnapshotNID]
|
||||
if !ok {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue