MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / new

Method new

atomic-core/src/change/verified.rs:95–101  ·  view source on GitHub ↗
(store: &'a S, max_entries: usize)

Source from the content-addressed store, hash-verified

93
94impl<'a, S: ChangeStore> VerifiedChangeCache<'a, S> {
95 pub fn new(store: &'a S, max_entries: usize) -> Self {
96 Self {
97 store,
98 entries: RwLock::new(Default::default()),
99 max_entries,
100 }
101 }
102}
103
104impl<S: ChangeStore> ChangeStore for VerifiedChangeCache<'_, S> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected