MCPcopy Create free account
hub / github.com/Botloader/botloader / is_fresh

Method is_fresh

components/stores/src/config.rs:1566–1570  ·  view source on GitHub ↗
(&self, source_hash: &str, settings_hash: &str)

Source from the content-addressed store, hash-verified

1564
1565impl ScriptDerivedFreshness {
1566 pub fn is_fresh(&self, source_hash: &str, settings_hash: &str) -> bool {
1567 self.source_hash == source_hash
1568 && self.settings_hash == settings_hash
1569 && self.runtime_version == SCRIPT_RUNTIME_VERSION
1570 }
1571}
1572
1573pub fn hash_script_source(source: &str) -> String {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected