diff options
| author | Matthieu <matthieu@developershouse.xyz> | 2021-10-18 13:52:21 +0400 |
|---|---|---|
| committer | Matthieu <matthieu@developershouse.xyz> | 2021-10-18 13:52:21 +0400 |
| commit | 2c39f7a6a1c3113337bc4e56b6e3cfa92f703fb3 (patch) | |
| tree | 01ceccb670f171c7bd12a5c0969c74572c5457e7 /webhook/src/main.rs | |
| parent | 9023aa354902844b7d6100f55c3064afedd88966 (diff) | |
| parent | d55a128729ca94e727ce3a1ab4fb6af08d3cd109 (diff) | |
fix merge conflicts
Diffstat (limited to 'webhook/src/main.rs')
| -rw-r--r-- | webhook/src/main.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webhook/src/main.rs b/webhook/src/main.rs index 98e5f13..00d42ee 100644 --- a/webhook/src/main.rs +++ b/webhook/src/main.rs @@ -6,6 +6,7 @@ use crate::handler::make_service::MakeSvc; use crate::config::Config;
use common::config::Settings;
use common::log::{error, info};
+use ed25519_dalek::PublicKey;
use hyper::Server;
#[tokio::main]
@@ -30,9 +31,12 @@ async fn start(settings: Settings<Config>) { );
let config = Arc::new(settings.config);
+ let public_key =
+ Arc::new(PublicKey::from_bytes(&hex::decode(&config.discord.public_key).unwrap()).unwrap());
let server = Server::bind(&addr).serve(MakeSvc {
settings: config,
nats: Arc::new(settings.nats.into()),
+ public_key: public_key,
});
if let Err(e) = server.await {
|
