Skip to content

Commit 3218a49

Browse files
cleanup
1 parent d5cc58d commit 3218a49

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

forester/src/processor/v2/changelog_cache.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,6 @@ pub async fn get_changelog_cache() -> &'static ChangelogCache {
1313
CHANGELOG_CACHE.get_or_init(|| async { ChangelogCache::new() }).await
1414
}
1515

16-
/// Thread-safe cache for merkle tree changelogs.
17-
///
18-
/// This cache is designed to work across multiple concurrent operations:
19-
/// - Multiple threads can read changelogs simultaneously (RwLock allows multiple readers)
20-
/// - Writes are serialized but append-only (no data loss)
21-
/// - Each tree has its own changelog list that accumulates over time
22-
///
23-
/// IMPORTANT: This cache is never cleared during normal operations to prevent
24-
/// race conditions between concurrent nullify and append operations.
2516
pub struct ChangelogCache {
2617
changelogs: Arc<RwLock<HashMap<Pubkey, Vec<ChangelogEntry<32>>>>>,
2718
}

0 commit comments

Comments
 (0)