Skip to content

Commit e5dd4ea

Browse files
sanityclaude
andcommitted
Increase invite rate limit from 5 to 20 per 24 hours
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1d872fa commit e5dd4ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust/api/src/rate_limit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::sync::Mutex;
1313
use thiserror::Error;
1414

1515
/// Maximum number of invites allowed per IP within the time window
16-
const MAX_INVITES_PER_WINDOW: usize = 5;
16+
const MAX_INVITES_PER_WINDOW: usize = 20;
1717

1818
/// SHA256 hashes of IPs exempt from rate limiting (for testing)
1919
const EXEMPT_IP_HASHES: &[&str] = &[

rust/api/src/routes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ async fn create_room_invite(
366366
return Err((
367367
StatusCode::TOO_MANY_REQUESTS,
368368
Json(InviteErrorResponse {
369-
error: "Rate limited. You can request up to 5 invites per 24 hours.".to_string(),
369+
error: "Rate limited. You can request up to 20 invites per 24 hours.".to_string(),
370370
retry_after_seconds: retry_after,
371371
}),
372372
));

0 commit comments

Comments
 (0)