(&self)
| 216 | } |
| 217 | |
| 218 | pub fn latest_lsn(&self) -> Option<u64> { |
| 219 | let events = self.events.read().unwrap_or_else(|p| p.into_inner()); |
| 220 | events.back().map(|e| e.lsn) |
| 221 | } |
| 222 | |
| 223 | pub fn total_pushed(&self) -> u64 { |
| 224 | self.total_pushed.load(std::sync::atomic::Ordering::Relaxed) |