[MIRROR ONLY] A correct and efficient ATProto blob proxy for secure content delivery. codeberg.org/Blooym/porxie
36
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: rename ttl in blob content log to tti

Lyna 1e58bb64 8d400e99

+4 -4
+4 -4
src/cache.rs
··· 18 18 } 19 19 20 20 #[must_use] 21 - fn build_blob_content_cache(mem_capacity: u64, ttl: Duration) -> BlobContentCache { 21 + fn build_blob_content_cache(mem_capacity: u64, tti: Duration) -> BlobContentCache { 22 22 tracing::debug!( 23 - "building blob content cache with a mem_capacity of {mem_capacity} bytes and a ttl of {}s", 24 - ttl.as_secs() 23 + "building blob content cache with a mem_capacity of {mem_capacity} bytes and a tti of {}s", 24 + tti.as_secs() 25 25 ); 26 26 27 27 BlobContentCache::builder() ··· 38 38 }) 39 39 .eviction_policy(EvictionPolicy::tiny_lfu()) 40 40 .max_capacity(mem_capacity) 41 - .time_to_idle(ttl) 41 + .time_to_idle(tti) 42 42 .build() 43 43 } 44 44