You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: replace Arc<RwLock<HashMap>> with Arc<DashMap> for attested contracts
Replace Arc<RwLock<HashMap<_, _>>> with Arc<DashMap<_, _>> for better
concurrency and simpler API. DashMap provides lock-free reads and
fine-grained per-shard locking, eliminating the need for manual lock
management and improving scalability under concurrent access.
Changes:
- Update AttestedContractMap type alias to use DashMap
- Refactor all read/write lock patterns to use DashMap's direct methods
- Simplify token cleanup task by using DashMap's retain() method
- Remove lock acquisition code throughout the codebase
Co-authored-by: nacho.d.g <iduartgomez@users.noreply.github.com>
0 commit comments