summaryrefslogtreecommitdiff
path: root/webhook/src/handler/make_service.rs
diff options
context:
space:
mode:
authorn1c00o <34602094+n1c00o@users.noreply.github.com>2021-10-16 22:26:09 +0200
committerGitHub <noreply@github.com>2021-10-16 22:26:09 +0200
commite58e816ceb8caa3c77dd98a952761b7e7f05b6cb (patch)
treeca5c9409986ff538e7a674473c1d642627d1055c /webhook/src/handler/make_service.rs
parent03908129599260587fe7b9fd8254d28ad50b8714 (diff)
parentb94b0552f81e667bec31352901bbc8c76f1b4216 (diff)
Merge branch 'main' into nats-structs-discord-gateway
Diffstat (limited to 'webhook/src/handler/make_service.rs')
-rw-r--r--webhook/src/handler/make_service.rs15
1 files changed, 9 insertions, 6 deletions
diff --git a/webhook/src/handler/make_service.rs b/webhook/src/handler/make_service.rs
index 96b203d..deeb2fe 100644
--- a/webhook/src/handler/make_service.rs
+++ b/webhook/src/handler/make_service.rs
@@ -1,12 +1,15 @@
-use std::{future::{Ready, ready}, sync::Arc, task::{Context, Poll}};
-use hyper::service::Service;
-use nats::Connection;
-use crate::config::Config;
use super::handler::HandlerService;
-
+use crate::config::Config;
+use hyper::service::Service;
+use common::nats_crate::Connection;
+use std::{
+ future::{ready, Ready},
+ sync::Arc,
+ task::{Context, Poll},
+};
pub struct MakeSvc {
- pub settings: Config,
+ pub settings: Arc<Config>,
pub nats: Arc<Connection>,
}