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

Method revalidate_verified_change

atomic-core/src/change/store.rs:124–130  ·  view source on GitHub ↗

Revalidate a cache hit against current backing data. The default reloads and verifies; stores must not trust a pathname, mtime or a prior receipt.

(
        &self,
        hash: &Hash,
        _cached: &super::VerifiedChange,
    )

Source from the content-addressed store, hash-verified

122 /// Revalidate a cache hit against current backing data. The default reloads
123 /// and verifies; stores must not trust a pathname, mtime or a prior receipt.
124 fn revalidate_verified_change(
125 &self,
126 hash: &Hash,
127 _cached: &super::VerifiedChange,
128 ) -> Result<super::VerifiedChange, super::VerifiedLoadError<Self::Error>> {
129 self.get_verified_change(hash)
130 }
131
132 /// Check if a change exists.
133 ///

Callers 1

get_verified_changeMethod · 0.45

Implementers 3

build_tests.rsatomic-core/src/pristine/span_patch_st
verified.rsatomic-core/src/change/verified.rs
store.rsatomic-core/src/change/store.rs

Calls 1

get_verified_changeMethod · 0.45

Tested by

no test coverage detected