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

Commit 41fe578

Browse files
committed
Remove unused code and bump to v0.1.0
1 parent 73eb557 commit 41fe578

5 files changed

Lines changed: 2 additions & 22 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "webhook-benchmark"
3-
version = "0.3.0"
3+
version = "0.1.0"
44
edition = "2024"
55

66
[dependencies]

src/limiter.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ pub struct Limiter {
1919
}
2020

2121
impl Limiter {
22-
pub fn notfounds(&self) -> Vec<url::Url> {
23-
self.notfound_set.pin().iter().cloned().collect()
24-
}
25-
2622
pub fn current(&self, request: &Request) -> Status {
2723
if request.retry_count > request.context.retry_limit {
2824
return Status::RetryLimitReached;
@@ -45,14 +41,6 @@ impl Limiter {
4541
self.notfound_set.pin().insert(target.to_owned());
4642
}
4743

48-
pub fn clear_notfounds<S: std::borrow::Borrow<url::Url>>(&self, targets: &[S]) {
49-
let set = self.notfound_set.pin();
50-
51-
for target in targets {
52-
set.remove(target.borrow());
53-
}
54-
}
55-
5644
pub fn tell_ratelimit(&self, target: &url::Url, retry_after: f32) -> Duration {
5745
let delta_time = Duration::from_secs_f32(retry_after);
5846
let limit_to = Instant::now() + delta_time;

src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ mod discord;
1212
mod limiter;
1313
mod load_generator;
1414
mod metrics;
15-
mod namesgenerator;
1615
mod reporter;
1716
mod request;
1817

src/namesgenerator.rs

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)