diff --git a/gossip/nostr-gossip-memory/src/store.rs b/gossip/nostr-gossip-memory/src/store.rs index 8438360e0..03ea266a1 100644 --- a/gossip/nostr-gossip-memory/src/store.rs +++ b/gossip/nostr-gossip-memory/src/store.rs @@ -54,7 +54,10 @@ pub struct NostrGossipMemory { } impl NostrGossipMemory { - /// Construct a new **unbounded** instance + /// Creates an unbounded cache for testing or non-production use. + /// + /// Prefer [`NostrGossipMemory::bounded`] for production code to avoid + /// unbounded memory growth. pub fn unbounded() -> Self { Self { public_keys: RwLock::new(LruCache::unbounded()),