mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-02 06:12:45 +00:00
Use a single storage.Database interface (#978)
This commit is contained in:
parent
c30b12b5a1
commit
a202d88fe5
11 changed files with 65 additions and 204 deletions
|
@ -22,7 +22,7 @@ import (
|
|||
"sort"
|
||||
"time"
|
||||
|
||||
"github.com/matrix-org/dendrite/roomserver/state/database"
|
||||
"github.com/matrix-org/dendrite/roomserver/storage"
|
||||
"github.com/matrix-org/util"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
|
||||
|
@ -31,10 +31,10 @@ import (
|
|||
)
|
||||
|
||||
type StateResolution struct {
|
||||
db database.RoomStateDatabase
|
||||
db storage.Database
|
||||
}
|
||||
|
||||
func NewStateResolution(db database.RoomStateDatabase) StateResolution {
|
||||
func NewStateResolution(db storage.Database) StateResolution {
|
||||
return StateResolution{
|
||||
db: db,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue