summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-10-03 19:33:56 +0000
committerSanto Cariotti <santo@dcariotti.me>2022-10-03 19:33:56 +0000
commit6128a983f23a52138bc6cd84625246013b6097fb (patch)
treede7ab35c098ba2c79550556ebbc8afd160aeafbc /src/main.rs
parent3f34d4a54828ed9d3f7eb1046e32e67876be67dd (diff)
fix(sentry): keep connection open
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/main.rs b/src/main.rs
index dac14e8..2a14629 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -8,7 +8,7 @@ mod models;
mod pagination;
mod routes;
-use crate::config::CONFIG;
+use crate::config::{CONFIG, SENTRY};
use axum::{
handler::Handler,
http::{header, Method, Request},
@@ -33,13 +33,6 @@ async fn main() {
let host = &CONFIG.allowed_host;
- match CONFIG.set_sentry_guard() {
- Some(_) => {}
- None => {
- tracing::error!("Sentry not configured.");
- }
- };
-
let addr = match host.parse::<SocketAddr>() {
Ok(addr) => addr,
Err(_) => match host.to_socket_addrs() {