Skip to content

Commit

Permalink
refactor: Update max_size default value in DnsCache::new
Browse files Browse the repository at this point in the history
  • Loading branch information
Litr0 committed Sep 3, 2024
1 parent 4081d46 commit 80d3bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dns_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl DnsCache {
pub fn new(max_size: Option<NonZeroUsize>) -> Self {
let cache = DnsCache {
cache: LruCache::new(max_size.unwrap_or_else(|| NonZeroUsize::new(1667).unwrap())),
max_size: max_size.unwrap_or_else(|| NonZeroUsize::new(100).unwrap()),
max_size: max_size.unwrap_or_else(|| NonZeroUsize::new(1667).unwrap()),
};
cache
}
Expand Down

0 comments on commit 80d3bb3

Please sign in to comment.