Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
amitksingh1490 committed May 2, 2024
1 parent 22b048f commit 74f562c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/data_loader/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ where
fn insert(&mut self, _key: Cow<'_, Self::Key>, _val: Cow<'_, Self::Value>) {}

#[inline]
#[allow(dead_code)]
fn remove(&mut self, _key: &K) {}

#[inline]
Expand Down
1 change: 1 addition & 0 deletions src/data_loader/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub trait CacheStorage: Send + Sync + 'static {
/// cache, then it updates the key's value.
fn insert(&mut self, key: Cow<'_, Self::Key>, val: Cow<'_, Self::Value>);

#[allow(dead_code)]
/// Removes the value corresponding to the key from the cache.
fn remove(&mut self, key: &Self::Key);

Expand Down

1 comment on commit 74f562c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running 30s test @ http://localhost:8000/graphql

4 threads and 100 connections

Thread Stats Avg Stdev Max +/- Stdev
Latency 7.66ms 3.75ms 125.14ms 74.26%
Req/Sec 3.32k 265.77 3.64k 86.17%

395903 requests in 30.01s, 1.98GB read

Requests/sec: 13193.14

Transfer/sec: 67.72MB

Please sign in to comment.