aboutsummaryrefslogtreecommitdiff
path: root/appservice
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 /appservice
parent8336ce972ec75b07b62f7b382c0e1e405d549545 (diff)
Wait for safe shutdown of NATS Server (#2289)
Diffstat (limited to 'appservice')
-rw-r--r--appservice/appservice.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/appservice/appservice.go b/appservice/appservice.go
index 3e19e09b..b9909186 100644
--- a/appservice/appservice.go
+++ b/appservice/appservice.go
@@ -59,7 +59,7 @@ func NewInternalAPI(
},
},
}
- js, _ := jetstream.Prepare(&base.Cfg.Global.JetStream)
+ js, _ := jetstream.Prepare(base.ProcessContext, &base.Cfg.Global.JetStream)
// Create a connection to the appservice postgres DB
appserviceDB, err := storage.NewDatabase(&base.Cfg.AppServiceAPI.Database)