Skip to content

Commit a3da224

Browse files
committed
Set the rate at which new crates are allowed to 10 min as intended
1 parent f017058 commit a3da224

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rate_limiter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ pg_enum! {
2020
impl LimitedAction {
2121
pub fn default_rate_seconds(&self) -> u64 {
2222
match self {
23-
LimitedAction::PublishNew => 60 * 60,
24-
LimitedAction::PublishUpdate => 60,
25-
LimitedAction::YankUnyank => 60,
23+
LimitedAction::PublishNew => 10 * 60, // 10 minutes
24+
LimitedAction::PublishUpdate => 60, // 1 minute
25+
LimitedAction::YankUnyank => 60, // 1 minute
2626
}
2727
}
2828

0 commit comments

Comments
 (0)