Skip to content

Commit

Permalink
bump to v1.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
dshiell committed Aug 10, 2024
1 parent b98f281 commit f2dc3b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cached-eth-rpc"
version = "1.0.12"
version = "1.0.13"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
4 changes: 1 addition & 3 deletions src/cache/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ pub mod redis_backend;
use chrono::Local;
use serde::{Deserialize, Serialize};
use serde_json::Value;
use std::cmp::min;
use tracing::info;

pub enum CacheStatus {
Cached { key: String, value: CacheValue },
Expand Down Expand Up @@ -42,7 +40,7 @@ impl CacheValue {
}

pub fn effective_ttl(&self) -> u32 {
min(self.reorg_ttl, self.ttl)
std::cmp::min(self.reorg_ttl, self.ttl)
}

pub fn update(mut self, expired_value: &Option<Self>, reorg_ttl: u32) -> Self {
Expand Down

0 comments on commit f2dc3b8

Please sign in to comment.