summaryrefslogtreecommitdiff
path: root/webhook/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'webhook/src/main.rs')
-rw-r--r--webhook/src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/webhook/src/main.rs b/webhook/src/main.rs
index 3125373..b9fefc5 100644
--- a/webhook/src/main.rs
+++ b/webhook/src/main.rs
@@ -22,8 +22,10 @@ async fn main() {
"Starting server on {}:{}",
settings.config.server.address, settings.config.server.port
);
+ let nats = Box::new(nats::connect("localhost").unwrap());
let server = Server::bind(&addr).serve(MakeSvc {
settings: settings.config.clone(),
+ nats
});
if let Err(e) = server.await {