aboutsummaryrefslogtreecommitdiff
path: root/userapi
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 /userapi
parent8336ce972ec75b07b62f7b382c0e1e405d549545 (diff)
Wait for safe shutdown of NATS Server (#2289)
Diffstat (limited to 'userapi')
-rw-r--r--userapi/userapi.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/userapi/userapi.go b/userapi/userapi.go
index 1e4ebcb2..97bdf7b2 100644
--- a/userapi/userapi.go
+++ b/userapi/userapi.go
@@ -46,7 +46,7 @@ func NewInternalAPI(
appServices []config.ApplicationService, keyAPI keyapi.KeyInternalAPI,
rsAPI rsapi.RoomserverInternalAPI, pgClient pushgateway.Client,
) api.UserInternalAPI {
- js, _ := jetstream.Prepare(&cfg.Matrix.JetStream)
+ js, _ := jetstream.Prepare(base.ProcessContext, &cfg.Matrix.JetStream)
syncProducer := producers.NewSyncAPI(
db, js,