aboutsummaryrefslogtreecommitdiff
path: root/clientapi
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-03-21 10:32:34 +0000
committerGitHub <noreply@github.com>2022-03-21 10:32:34 +0000
commit9572f5ed19abc0b635092108aa6956eaebc60578 (patch)
treeb4ed09d4db6406d0fe02a3d904125027d05aa333 /clientapi
parent8336ce972ec75b07b62f7b382c0e1e405d549545 (diff)
Wait for safe shutdown of NATS Server (#2289)
Diffstat (limited to 'clientapi')
-rw-r--r--clientapi/clientapi.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/clientapi/clientapi.go b/clientapi/clientapi.go
index e4279c22..75184d3b 100644
--- a/clientapi/clientapi.go
+++ b/clientapi/clientapi.go
@@ -27,6 +27,7 @@ import (
roomserverAPI "github.com/matrix-org/dendrite/roomserver/api"
"github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/setup/jetstream"
+ "github.com/matrix-org/dendrite/setup/process"
userapi "github.com/matrix-org/dendrite/userapi/api"
userdb "github.com/matrix-org/dendrite/userapi/storage"
"github.com/matrix-org/gomatrixserverlib"
@@ -34,6 +35,7 @@ import (
// AddPublicRoutes sets up and registers HTTP handlers for the ClientAPI component.
func AddPublicRoutes(
+ process *process.ProcessContext,
router *mux.Router,
synapseAdminRouter *mux.Router,
cfg *config.ClientAPI,
@@ -49,7 +51,7 @@ func AddPublicRoutes(
extRoomsProvider api.ExtraPublicRoomsProvider,
mscCfg *config.MSCs,
) {
- js, _ := jetstream.Prepare(&cfg.Matrix.JetStream)
+ js, _ := jetstream.Prepare(process, &cfg.Matrix.JetStream)
syncProducer := &producers.SyncAPIProducer{
JetStream: js,