MCPcopy Create free account
hub / github.com/aws/clock-bound / feed

Method feed

clock-bound/src/daemon/clock_sync_algorithm/ff/event_buffer/local.rs:114–116  ·  view source on GitHub ↗

Feed the ring buffer with a new event # Errors - the event is older than events already in the buffer

(&mut self, event: T)

Source from the content-addressed store, hash-verified

112 /// # Errors
113 /// - the event is older than events already in the buffer
114 pub fn feed(&mut self, event: T) -> Result<(), FeedError<T>> {
115 self.push_if_newer(event)
116 }
117
118 /// Adds a new event to the ring buffer
119 ///

Callers 4

push_staleFunction · 0.45
push_newerFunction · 0.45
handle_disruptionFunction · 0.45

Calls 1

push_if_newerMethod · 0.80

Tested by 4

push_staleFunction · 0.36
push_newerFunction · 0.36
handle_disruptionFunction · 0.36