MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / cmp

Method cmp

nodedb-array/src/sync/hlc.rs:125–131  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

123
124impl Ord for Hlc {
125 fn cmp(&self, other: &Self) -> std::cmp::Ordering {
126 (self.physical_ms, self.logical, self.replica_id.0).cmp(&(
127 other.physical_ms,
128 other.logical,
129 other.replica_id.0,
130 ))
131 }
132}
133
134/// Monotonic HLC generator for a single replica.

Callers 2

merge_for_retentionFunction · 0.45
partial_cmpMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected