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

Method add_ntp_source

clock-bound/src/daemon/receiver_stream.rs:46–49  ·  view source on GitHub ↗

Adds a new ntp source to the `ntp_sources`

(&mut self, source: NTPSourceReceiver)

Source from the content-addressed store, hash-verified

44impl ReceiverStream {
45 /// Adds a new ntp source to the `ntp_sources`
46 pub fn add_ntp_source(&mut self, source: NTPSourceReceiver) {
47 let (socket_addr, receiver) = source;
48 let _ = &self.ntp_sources.insert(socket_addr, receiver);
49 }
50
51 /// Removes an ntp source from `ntp_sources`
52 pub fn remove_ntp_source(&mut self, id: &SocketAddr) {

Callers 1

add_ntp_sourceFunction · 0.80

Calls

no outgoing calls

Tested by 1

add_ntp_sourceFunction · 0.64