diff --git a/Cargo.lock b/Cargo.lock index 5b37c2d0714..327cec34d82 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -414,6 +414,12 @@ version = "1.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69f7f8c3906b62b754cd5326047894316021dcfe5a194c8ea52bdd94934a3457" +[[package]] +name = "arcstr" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03918c3dbd7701a85c6b9887732e2921175f26c350b4563841d0958c21d57e6d" + [[package]] name = "arrayref" version = "0.3.7" @@ -984,9 +990,9 @@ dependencies = [ [[package]] name = "backon" -version = "1.5.0" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd0b50b1b78dbadd44ab18b3c794e496f3a139abb9fbc27d9c94c4eebbb96496" +checksum = "cffb0e931875b666fc4fcb20fee52e9bbd1ef836fd9e9e04ec21555f9f85f7ef" dependencies = [ "fastrand", ] @@ -5613,11 +5619,12 @@ dependencies = [ [[package]] name = "redis" -version = "0.31.0" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bc1ea653e0b2e097db3ebb5b7f678be339620b8041f66b30a308c1d45d36a7f" +checksum = "5dfe20977fe93830c0e9817a16fbf1ed1cfd8d4bba366087a1841d2c6033c251" dependencies = [ "arc-swap", + "arcstr", "backon", "bytes", "cfg-if 1.0.0", @@ -5630,10 +5637,11 @@ dependencies = [ "pin-project-lite", "ryu", "sha1_smol", - "socket2 0.5.7", + "socket2 0.6.0", "tokio", "tokio-util 0.7.18", "url", + "xxhash-rust", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index c8baf011a79..f0df100f157 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -68,7 +68,7 @@ itertools = "0.14.0" lazy_static = "1.5.0" prost = "0.13" prost-types = "0.13" -redis = { version = "0.31.0", features = [ +redis = { version = "1.0.2", features = [ "aio", "connection-manager", "tokio-comp", diff --git a/graph/src/ipfs/cache.rs b/graph/src/ipfs/cache.rs index 2e2c3253f55..7ca6e766640 100644 --- a/graph/src/ipfs/cache.rs +++ b/graph/src/ipfs/cache.rs @@ -33,8 +33,8 @@ impl RedisClient { let env = &ENV_VARS.mappings; let client = redis::Client::open(path)?; let cfg = ConnectionManagerConfig::default() - .set_connection_timeout(env.ipfs_timeout) - .set_response_timeout(env.ipfs_timeout); + .set_connection_timeout(Some(env.ipfs_timeout)) + .set_response_timeout(Some(env.ipfs_timeout)); info!(logger, "Connecting to Redis for IPFS caching"; "url" => path); // Try to connect once synchronously to check if the server is reachable. let _ = client.get_connection()?;