diff options
Diffstat (limited to 'webhook/src/handler/make_service.rs')
| -rw-r--r-- | webhook/src/handler/make_service.rs | 15 |
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>, } |
