Skip to content

Commit c6a6d19

Browse files
committed
⬆️ Upgrade dependencies
1 parent eca8b44 commit c6a6d19

File tree

3 files changed

+116
-57
lines changed

3 files changed

+116
-57
lines changed

Cargo.lock

Lines changed: 107 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ build = "build.rs"
88
[dependencies]
99
axum = { version = "^0.7.5", features = ["http2"] }
1010
futures = "^0"
11-
serde = { version = "^1.0.197", features = ["derive"] }
12-
serde_json = "^1.0.115"
13-
tokio = { version = "^1.37.0", features = ["full"] }
11+
serde = { version = "^1", features = ["derive"] }
12+
serde_json = "^1"
13+
tokio = { version = "^1", features = ["full"] }
1414
tokio-stream = "^0.1.15"
1515
tungstenite = "^0"
1616
tokio-tungstenite = { version = "^0", features = ["native-tls"] }
@@ -23,23 +23,23 @@ once_cell = "^1"
2323
tracing = "^0"
2424
tracing-subscriber = "^0"
2525
anyhow = "^1.0.81"
26-
tower_governor = "^0.3.2"
26+
tower_governor = "0.4.2"
2727
bytes = "^1.6.0"
2828
http-body-util = "^0.1.1"
2929
dotenv = "^0"
3030
regex = "^1.10.4"
3131
headers = "0.4.0"
3232
forwarded-header-value = "0.1.1"
3333
rand = "0.8.5"
34-
bitcoin = "0.31.2"
34+
bitcoin = "0.32.2"
3535
hex = "0.4.3"
3636
moka = { version = "0.12.5", features = ["future"] }
3737
ciborium = "0.2.2"
3838
mime_guess = "2.0.4"
3939

4040
[build-dependencies]
41-
vergen = { version = "9.0.0-beta.2", features = ["build", "cargo", "rustc"] }
42-
anyhow = "^1.0.81"
41+
vergen = { version = "9", features = ["build", "cargo", "rustc"] }
42+
anyhow = "^1"
4343

4444
[profile.release]
4545
strip = true

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ fn handle_panic(err: Box<dyn Any + Send + 'static>) -> http::Response<Full<Bytes
256256
async fn main() {
257257
dotenv().ok();
258258
tracing_subscriber::fmt::init();
259-
let governor_conf = Box::new(
259+
let governor_conf = Arc::new(
260260
GovernorConfigBuilder::default()
261261
.per_millisecond(*IP_LIMIT_PER_MILLS)
262262
.burst_size(*IP_LIMIT_BURST_SIZE)
@@ -292,7 +292,7 @@ async fn main() {
292292
.route("/proxy/health", get(handle_health).post(handle_health))
293293
.route("/proxy/:method", get(handle_get).post(handle_post))
294294
.layer(GovernorLayer {
295-
config: Box::leak(governor_conf),
295+
config: governor_conf,
296296
})
297297
.layer(ConcurrencyLimitLayer::new(*CONCURRENCY_LIMIT))
298298
.layer(CatchPanicLayer::custom(handle_panic))

0 commit comments

Comments
 (0)