aboutsummaryrefslogtreecommitdiff
path: root/roomserver/input/input.go
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-04-24 10:38:58 +0100
committerGitHub <noreply@github.com>2020-04-24 10:38:58 +0100
commita202d88fe527c83179d2ebf57ac0d146c3173f9d (patch)
tree493aea75e95b20b93f7212779f2cca7ebac7279e /roomserver/input/input.go
parentc30b12b5a1deea21e54d4718ca11a3b6366c443d (diff)
Use a single storage.Database interface (#978)
Diffstat (limited to 'roomserver/input/input.go')
-rw-r--r--roomserver/input/input.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/roomserver/input/input.go b/roomserver/input/input.go
index 3b519ecb..cb588380 100644
--- a/roomserver/input/input.go
+++ b/roomserver/input/input.go
@@ -24,12 +24,13 @@ import (
"github.com/Shopify/sarama"
"github.com/matrix-org/dendrite/common"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/roomserver/storage"
"github.com/matrix-org/util"
)
// RoomserverInputAPI implements api.RoomserverInputAPI
type RoomserverInputAPI struct {
- DB RoomEventDatabase
+ DB storage.Database
Producer sarama.SyncProducer
// The kafkaesque topic to output new room events to.
// This is the name used in kafka to identify the stream to write events to.