Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit 761a9f4

Browse files
committed
typo
1 parent 81f14ea commit 761a9f4

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/telemetry.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,7 @@ impl TelemetryLogger {
8989
pub async fn log(&self, ip: &str, telemetry: TelemetryData) -> Option<()> {
9090
let mut processing = self.processing.lock().await;
9191

92-
let ratelimit_key = format!(
93-
"blueprint_api::ratelimit::{}",
94-
if ip.contains(':') {
95-
ip.split(':').next().unwrap()
96-
} else {
97-
&ip
98-
}
99-
);
92+
let ratelimit_key = format!("blueprint_api::ratelimit::{}", ip);
10093

10194
let count = self.cache.client.incr(&ratelimit_key).await.unwrap();
10295
if count == 1 {

0 commit comments

Comments
 (0)