rand 0.9.0
All checks were successful
/ tests (push) Successful in 2m27s
/ deny (push) Successful in 24s
/ clippy (push) Successful in 2m29s
/ check (aarch64-unknown-linux-musl) (push) Successful in 3m14s
/ check (armv7-unknown-linux-musleabihf) (push) Successful in 3m16s
/ check (x86_64-unknown-linux-musl) (push) Successful in 2m11s
All checks were successful
/ tests (push) Successful in 2m27s
/ deny (push) Successful in 24s
/ clippy (push) Successful in 2m29s
/ check (aarch64-unknown-linux-musl) (push) Successful in 3m14s
/ check (armv7-unknown-linux-musleabihf) (push) Successful in 3m16s
/ check (x86_64-unknown-linux-musl) (push) Successful in 2m11s
This commit is contained in:
parent
6473e37f27
commit
e4d213fb49
4 changed files with 4 additions and 4 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -2245,7 +2245,7 @@ dependencies = [
|
|||
"opentelemetry-otlp",
|
||||
"opentelemetry_sdk",
|
||||
"pin-project-lite",
|
||||
"rand 0.8.5",
|
||||
"rand 0.9.0",
|
||||
"refinery",
|
||||
"reqwest",
|
||||
"reqwest-middleware",
|
||||
|
|
|
@ -44,7 +44,7 @@ md-5 = "0.10.6"
|
|||
metrics = "0.24.0"
|
||||
metrics-exporter-prometheus = { version = "0.16.0", default-features = false, features = ["http-listener"] }
|
||||
mime = "0.3.17"
|
||||
rand = { version = "0.8.5", optional = true }
|
||||
rand = { version = "0.9.0", optional = true }
|
||||
object_store = { version = "0.11.0", features = ["aws"] }
|
||||
opentelemetry_sdk = { version = "0.27.0", features = ["rt-tokio"] }
|
||||
opentelemetry = "0.27.0"
|
||||
|
|
|
@ -27,7 +27,7 @@ where
|
|||
{
|
||||
use rand::Rng;
|
||||
|
||||
if rand::thread_rng().gen_range(0..25) < 1 {
|
||||
if rand::rng().random_range(0..25) < 1 {
|
||||
return Err(crate::error::UploadError::RandomError).retry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -113,7 +113,7 @@ pub(crate) fn error_injector(
|
|||
|
||||
use rand::Rng;
|
||||
|
||||
if rand::thread_rng().gen_range(0..1000) < 1 {
|
||||
if rand::rng().random_range(0..1000) < 1 {
|
||||
return Err(std::io::Error::new(
|
||||
std::io::ErrorKind::Other,
|
||||
crate::error::UploadError::RandomError,
|
||||
|
|
Loading…
Add table
Reference in a new issue