Skip to content

Commit

Permalink
chore: sentryとaxumを一緒にバージョンアップする
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Dec 3, 2023
1 parent e2e326a commit 869c7ce
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 24 deletions.
42 changes: 21 additions & 21 deletions server/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ axum = "0.7.1"
bytes = "1.5.0"
envy = "0.4.2"
# default featureは推移的にnative-tls featureを有効しているため、native-tls (LinuxではOpenSSL) を連れてくる。これをオプトアウトするためにrustlsを使う。
sentry = { version = "0.31.8", default-features = false, features = ["backtrace", "contexts", "panic", "anyhow", "reqwest", "tracing", "debug-images", "rustls", "tower", "tower-http"] }
sentry = { version = "0.32.0", default-features = false, features = ["backtrace", "contexts", "panic", "anyhow", "reqwest", "tracing", "debug-images", "rustls", "tower", "tower-http"] }
serde = { version = "1.0.193", features = ["derive"] }
tokio = { version = "1.34.0", features = ["full"] }
tokio-util = { version = "0.7.10", features = ["io"] }
Expand Down
7 changes: 5 additions & 2 deletions server/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use tokio::net::TcpListener;

mod domain {
use bytes::Bytes;
use std::fmt::Debug;
Expand Down Expand Up @@ -241,8 +243,9 @@ async fn main() {

tracing::info!("Listening on {}", config.http_port.port);

axum::Server::bind(&addr)
.serve(router.into_make_service())
let listener = TcpListener::bind(addr).await.unwrap();

axum::serve(listener, router)
.await
.unwrap()
}

0 comments on commit 869c7ce

Please sign in to comment.