(&self, other: &Self)
| 123 | |
| 124 | impl 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. |
no outgoing calls
no test coverage detected