diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-05-09 14:15:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-09 14:15:24 +0100 |
commit | 09d754cfbf9268044d0f59fbe509640b8d71e011 (patch) | |
tree | 23922c3b718c3317651fcd95da85f6f0765662f4 /appservice | |
parent | 79e2fbc66368d8f4754b9fff8005d3e77969fcc4 (diff) |
One NATS instance per `BaseDendrite` (#2438)
* One NATS instance per `BaseDendrite`
* Fix roomserver
Diffstat (limited to 'appservice')
-rw-r--r-- | appservice/appservice.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/appservice/appservice.go b/appservice/appservice.go index bd292767..c5ae9ceb 100644 --- a/appservice/appservice.go +++ b/appservice/appservice.go @@ -32,7 +32,6 @@ import ( roomserverAPI "github.com/matrix-org/dendrite/roomserver/api" "github.com/matrix-org/dendrite/setup/base" "github.com/matrix-org/dendrite/setup/config" - "github.com/matrix-org/dendrite/setup/jetstream" userapi "github.com/matrix-org/dendrite/userapi/api" "github.com/matrix-org/gomatrixserverlib" ) @@ -55,7 +54,7 @@ func NewInternalAPI( gomatrixserverlib.WithSkipVerify(base.Cfg.AppServiceAPI.DisableTLSValidation), ) - js, _ := jetstream.Prepare(base.ProcessContext, &base.Cfg.Global.JetStream) + js, _ := base.NATS.Prepare(base.ProcessContext, &base.Cfg.Global.JetStream) // Create a connection to the appservice postgres DB appserviceDB, err := storage.NewDatabase(base, &base.Cfg.AppServiceAPI.Database) |