File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
forester/src/processor/v2 Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,6 @@ pub async fn get_changelog_cache() -> &'static ChangelogCache {
13
13
CHANGELOG_CACHE . get_or_init ( || async { ChangelogCache :: new ( ) } ) . await
14
14
}
15
15
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.
25
16
pub struct ChangelogCache {
26
17
changelogs : Arc < RwLock < HashMap < Pubkey , Vec < ChangelogEntry < 32 > > > > > ,
27
18
}
You can’t perform that action at this time.
0 commit comments