From 80d3bb3f84d945e314cce2aebb8e796246f906b5 Mon Sep 17 00:00:00 2001 From: Litr0 Date: Tue, 3 Sep 2024 12:02:39 -0400 Subject: [PATCH] refactor: Update max_size default value in DnsCache::new --- src/dns_cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dns_cache.rs b/src/dns_cache.rs index dc2de025..9c8bd740 100644 --- a/src/dns_cache.rs +++ b/src/dns_cache.rs @@ -43,7 +43,7 @@ impl DnsCache { pub fn new(max_size: Option) -> 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 }