Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion gossip/nostr-gossip-memory/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down
Loading