aboutsummaryrefslogtreecommitdiff
path: root/syncapi/syncapi.go
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-06-16 17:05:38 +0100
committerGitHub <noreply@github.com>2020-06-16 17:05:38 +0100
commit83391da0e04dda7a52589ee7ec6df2b615571894 (patch)
tree0a0ffcc5b7209600eaf042ee317a0681e0bd7f59 /syncapi/syncapi.go
parent1942928ee5e0398beed45c8b1c63d7b13e89b646 (diff)
Make syncapi use userapi (#1136)
* Make syncapi use userapi * Unbreak things * Fix tests * Lint
Diffstat (limited to 'syncapi/syncapi.go')
-rw-r--r--syncapi/syncapi.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/syncapi/syncapi.go b/syncapi/syncapi.go
index 2351ee4d..caf91e27 100644
--- a/syncapi/syncapi.go
+++ b/syncapi/syncapi.go
@@ -21,7 +21,6 @@ import (
"github.com/gorilla/mux"
"github.com/sirupsen/logrus"
- "github.com/matrix-org/dendrite/clientapi/auth/storage/accounts"
"github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/roomserver/api"
userapi "github.com/matrix-org/dendrite/userapi/api"
@@ -39,7 +38,6 @@ func AddPublicRoutes(
router *mux.Router,
consumer sarama.Consumer,
userAPI userapi.UserInternalAPI,
- accountsDB accounts.Database,
rsAPI api.RoomserverInternalAPI,
federation *gomatrixserverlib.FederationClient,
cfg *config.Dendrite,
@@ -60,7 +58,7 @@ func AddPublicRoutes(
logrus.WithError(err).Panicf("failed to start notifier")
}
- requestPool := sync.NewRequestPool(syncDB, notifier, accountsDB)
+ requestPool := sync.NewRequestPool(syncDB, notifier, userAPI)
roomConsumer := consumers.NewOutputRoomEventConsumer(
cfg, consumer, notifier, syncDB, rsAPI,