diff options
| author | Matthieu <matthieu@developershouse.xyz> | 2021-10-08 14:48:39 +0400 |
|---|---|---|
| committer | Matthieu <matthieu@developershouse.xyz> | 2021-10-08 14:48:39 +0400 |
| commit | a02b25f235ba6eff33c6fd965c97071d5f112b6d (patch) | |
| tree | 2fc18dbde0f1b2403cb83cf1adb6aa5e66cef7b2 /webhook/src/handler/make_service.rs | |
| parent | 308df902d6ff8656cea13e61e5277890d5ad4f08 (diff) | |
changes in the proto names, and new spec for nats
Diffstat (limited to 'webhook/src/handler/make_service.rs')
| -rw-r--r-- | webhook/src/handler/make_service.rs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/webhook/src/handler/make_service.rs b/webhook/src/handler/make_service.rs index 96b203d..0778ad0 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 super::handler::HandlerService; +use crate::config::Config; use hyper::service::Service; use nats::Connection; -use crate::config::Config; -use super::handler::HandlerService; - +use std::{ + future::{ready, Ready}, + sync::Arc, + task::{Context, Poll}, +}; pub struct MakeSvc { - pub settings: Config, + pub settings: Arc<Config>, pub nats: Arc<Connection>, } |
