MCPcopy Create free account
hub / github.com/elastic/devfiler / any_changes

Method any_changes

src/storage/notify.rs:32–42  ·  view source on GitHub ↗

Detect whether any table changed since the last call. The first call will always return `true`.

(&mut self)

Source from the content-addressed store, hash-verified

30 ///
31 /// The first call will always return `true`.
32 pub fn any_changes(&mut self) -> bool {
33 let mut any_change = false;
34
35 for (table, entry) in DB.tables().into_iter().zip(&mut self.prev_seq) {
36 let new_seq = table.last_seq();
37 let old_seq = std::mem::replace(entry, new_seq);
38 any_change |= old_seq != new_seq;
39 }
40
41 any_change
42 }
43}

Callers 1

background_ui_wakerFunction · 0.80

Calls 2

tablesMethod · 0.80
last_seqMethod · 0.80

Tested by

no test coverage detected