diff options
author | Kegsay <kegan@matrix.org> | 2020-06-09 12:07:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 12:07:33 +0100 |
commit | 85ac8a3f5ba407ece584843a4d77466c1c4f5565 (patch) | |
tree | ce98a9501386fd8467196d164eb35a53ad8cb78b /cmd/dendrite-sync-api-server/main.go | |
parent | 4f171c56a832c836b0eb21650ee84d56e451dd6a (diff) |
Factor out how monolith routes get added (#1107)
Previously we had 3 monoliths:
- dendrite-monolith-server
- dendrite-demo-libp2p
- dendritejs
which all had their own of setting up public routes. Factor this
out into a new `setup.Monolith` struct which gets all dependencies
set as fields. This is different to `basecomponent.Base` which
doesn't provide any way to set configured deps (e.g public rooms db)
Part of a larger process to clean up how we initialise Dendrite.
Diffstat (limited to 'cmd/dendrite-sync-api-server/main.go')
-rw-r--r-- | cmd/dendrite-sync-api-server/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/dendrite-sync-api-server/main.go b/cmd/dendrite-sync-api-server/main.go index 4ad68c5e..a5302f74 100644 --- a/cmd/dendrite-sync-api-server/main.go +++ b/cmd/dendrite-sync-api-server/main.go @@ -30,7 +30,7 @@ func main() { rsAPI := base.RoomserverHTTPClient() - syncapi.AddPublicRoutes(base.PublicAPIMux, base, deviceDB, accountDB, rsAPI, federation, cfg) + syncapi.AddPublicRoutes(base.PublicAPIMux, base.KafkaConsumer, deviceDB, accountDB, rsAPI, federation, cfg) base.SetupAndServeHTTP(string(base.Cfg.Bind.SyncAPI), string(base.Cfg.Listen.SyncAPI)) |