Skip to content

Commit 8b6e38f

Browse files
committed
fix(ci): repair post-merge dependency breakage
1 parent 45a7078 commit 8b6e38f

4 files changed

Lines changed: 12 additions & 31 deletions

File tree

Cargo.lock

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

crates/modelrelay-cloud/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ reqwest = { workspace = true }
2020
tower = "0.5"
2121
tower-http = { version = "0.6", features = ["fs", "trace"] }
2222
sqlx = { workspace = true }
23-
tower-sessions = "0.15"
23+
tower-sessions = "0.14"
2424
tower-sessions-sqlx-store = { version = "0.15", features = ["postgres"] }
2525
uuid = { version = "1", features = ["v4", "serde"] }
2626
chrono = { workspace = true }

crates/modelrelay-cloud/src/routes/webhook.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use axum::body::Bytes;
44
use axum::extract::State;
55
use axum::http::{HeaderMap, StatusCode};
66
use axum::response::IntoResponse;
7-
use hmac::{Hmac, Mac};
7+
use hmac::{Hmac, KeyInit, Mac};
88
use sha2::Sha256;
99
use sqlx::PgPool;
1010

@@ -384,6 +384,7 @@ async fn handle_payment_failed(pool: &PgPool, payload: &serde_json::Value) -> Re
384384
#[cfg(test)]
385385
mod tests {
386386
use super::*;
387+
use hmac::KeyInit;
387388

388389
/// Helper: compute the real HMAC-SHA256 hex digest for `"{timestamp}.{payload}"`.
389390
fn compute_sig(secret: &str, timestamp: &str, payload: &[u8]) -> String {

crates/modelrelay-server/src/api_keys.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::fmt;
33
use std::sync::Arc;
44
use std::time::SystemTime;
55

6-
use rand::Rng;
6+
use rand::RngExt;
77
use sha2::{Digest, Sha256};
88
use tokio::sync::RwLock;
99

0 commit comments

Comments
 (0)