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

Method handle_disruption

clock-bound/src/daemon/clock_sync_algorithm/selector.rs:63–69  ·  view source on GitHub ↗

Clear inner state during a disruption event

(&mut self)

Source from the content-addressed store, hash-verified

61 // then we'll maintain the same `selected_at` and `selected_at_clock_error_bound`
62 // values.
63 if current.source_info.same_source(&source_info) {
64 (current.selected_at, current.selected_at_clock_error_bound)
65 } else {
66 (clock_parameters.time, clock_parameters.clock_error_bound)
67 };
68 self.current = Some(SyncParameters {
69 clock_parameters: clock_parameters.clone(),
70 source_info,
71 selected_at,
72 selected_at_clock_error_bound: selected_clock_error_bound,

Callers 1

handle_disruptionFunction · 0.45

Calls

no outgoing calls

Tested by 1

handle_disruptionFunction · 0.36