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

Method feed_phc

clock-bound/src/daemon/clock_sync_algorithm.rs:175–180  ·  view source on GitHub ↗

Feed event into the phc

(
        phc: &mut source::Phc,
        event: event::Phc,
    )

Source from the content-addressed store, hash-verified

173
174 /// Feed event into the phc
175 fn feed_phc(
176 phc: &mut source::Phc,
177 event: event::Phc,
178 ) -> Option<(&ClockParameters, SourceInfo)> {
179 phc.feed(event).map(|params| (params, SourceInfo::Phc))
180 }
181
182 fn update_selected_clock(selected_clock: &Arc<SelectedClockSource>, source_info: SourceInfo) {
183 // associated method to help borrow checker

Callers

nothing calls this directly

Calls 1

feedMethod · 0.45

Tested by

no test coverage detected