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

Method feed_link_local

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

Feed event into the link local

(
        link_local: &mut source::LinkLocal,
        event: event::Ntp,
    )

Source from the content-addressed store, hash-verified

145
146 /// Feed event into the link local
147 fn feed_link_local(
148 link_local: &mut source::LinkLocal,
149 event: event::Ntp,
150 ) -> Option<(&ClockParameters, SourceInfo)> {
151 // associated method to help borrow checker
152 let stratum = event.data().stratum;
153
154 link_local
155 .feed(event)
156 .map(|params| (params, SourceInfo::LinkLocal(stratum)))
157 }
158
159 /// Feed event into ntp source
160 fn feed_ntp_source(

Callers

nothing calls this directly

Calls 3

LinkLocalClass · 0.50
dataMethod · 0.45
feedMethod · 0.45

Tested by

no test coverage detected