Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 65 additions & 10 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ ractor = { version = "0.15.7", features = [
"async-trait",
"tokio_runtime",
], default-features = false }
rand = "0.9.0"
rand = "0.10.0"
reqwest = { version = "0.12", features = [
"charset",
"h2",
Expand Down
6 changes: 3 additions & 3 deletions crates/dips/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ mod test {
};

use indexer_monitor::EscrowAccounts;
use rand::{distr::Alphanumeric, Rng};
use rand::distr::{Alphanumeric, Distribution};
use thegraph_core::alloy::{
primitives::{Address, ChainId, FixedBytes, U256},
signers::local::PrivateKeySigner,
Expand Down Expand Up @@ -695,8 +695,8 @@ mod test {
Self {
payee: PrivateKeySigner::random(),
payer: PrivateKeySigner::random(),
deployment_id: rand::rng()
.sample_iter(&Alphanumeric)
deployment_id: Alphanumeric
.sample_iter(rand::rng())
.take(32)
.map(char::from)
.collect(),
Expand Down
9 changes: 6 additions & 3 deletions crates/tap-agent/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ use actors::TestableActor;
use bigdecimal::num_bigint::BigInt;
use indexer_monitor::{DeploymentDetails, EscrowAccounts, SubgraphClient};
use ractor::{concurrency::JoinHandle, Actor, ActorRef};
use rand::{distr::Alphanumeric, rng, Rng};
use rand::{
distr::{Alphanumeric, Distribution},
rng,
};
use reqwest::Url;
use sqlx::{types::BigDecimal, PgPool, Row};
use tap_aggregator::server::run_server;
Expand Down Expand Up @@ -72,8 +75,8 @@ const ESCROW_POLLING_INTERVAL: Duration = Duration::from_secs(30);
/// Generates a random prefix to be used for actor registry
pub fn generate_random_prefix() -> String {
const SIZE: usize = 16;
rng()
.sample_iter(&Alphanumeric)
Alphanumeric
.sample_iter(rng())
.take(SIZE)
.map(char::from)
.collect()
Expand Down