Skip to content

Commit 0628fec

Browse files
committed
sentry - routes - get cfg - fix bug
1 parent e7b0fd2 commit 0628fec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sentry/src/routes/cfg.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//! `GET /cfg` request
22
3+
use std::sync::Arc;
4+
35
use adapter::client::Locked;
46
use axum::{Extension, Json};
57
use hyper::{header::CONTENT_TYPE, Body, Request, Response};
@@ -10,7 +12,7 @@ use crate::{response::ResponseError, Application};
1012

1113
/// `GET /cfg` request
1214
pub async fn config_axum<C: Locked + 'static>(
13-
Extension(app): Extension<Application<C>>,
15+
Extension(app): Extension<Arc<Application<C>>>,
1416
) -> Json<Config> {
1517
Json(app.config.clone())
1618
}

0 commit comments

Comments
 (0)