Skip to content
Merged
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
11 changes: 2 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ chrono = { version = "0.4.11", default-features = false, features = ["clock", "s

# Transitive dependencies we don't use directly but need to have specific versions of
thread_local = "1.1.3"
humantime = "2.1.0"
constant_time_eq = "0.3.0"

[target.'cfg(target_os = "linux")'.dependencies]
Expand Down
6 changes: 3 additions & 3 deletions src/bin/cratesfyi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ use docs_rs::{
start_background_metrics_webserver, start_web_server,
};
use futures_util::StreamExt;
use humantime::Duration;
use once_cell::sync::OnceCell;
use sentry::{
TransactionContext, integrations::panic as sentry_panic,
Expand Down Expand Up @@ -712,7 +711,7 @@ enum LimitsSubcommand {
#[arg(long)]
targets: Option<usize>,
#[arg(long)]
timeout: Option<Duration>,
timeout: Option<usize>,
},

/// Remove sandbox limits overrides for a crate
Expand Down Expand Up @@ -748,7 +747,8 @@ impl LimitsSubcommand {
let overrides = Overrides {
memory,
targets,
timeout: timeout.map(Into::into),
timeout: timeout
.map(|timeout| std::time::Duration::from_secs(timeout as _)),
};
Overrides::save(&mut conn, &crate_name, overrides).await?;
let overrides = Overrides::for_crate(&mut conn, &crate_name).await?;
Expand Down
Loading