MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / same_checksum_as

Method same_checksum_as

crates/commitlog/src/commitlog.rs:802–805  ·  view source on GitHub ↗

`true` if the last seen commit in self and the provided one have the same `checksum`.

(&self, commit: &StoredCommit)

Source from the content-addressed store, hash-verified

800 /// `true` if the last seen commit in self and the provided one have the
801 /// same `checksum`.
802 fn same_checksum_as(&self, commit: &StoredCommit) -> bool {
803 let Some(checksum) = self.checksum() else { return false };
804 checksum == &commit.checksum
805 }
806
807 fn checksum(&self) -> Option<&u32> {
808 match self {

Callers 1

next_commitMethod · 0.80

Calls 1

checksumMethod · 0.80

Tested by

no test coverage detected