MCPcopy Create free account
hub / github.com/SeismicSystems/summit / enqueue

Method enqueue

syncer/src/actor.rs:147–153  ·  view source on GitHub ↗

Enqueues a newly dispatched ack, arming it immediately when idle.

(&mut self, ack: PendingAck<B, A>)

Source from the content-addressed store, hash-verified

145
146 /// Enqueues a newly dispatched ack, arming it immediately when idle.
147 fn enqueue(&mut self, ack: PendingAck<B, A>) {
148 if self.current.is_none() {
149 self.current.replace(ack);
150 return;
151 }
152 self.queue.push_back(ack);
153 }
154
155 /// Returns metadata for a completed current ack and arms the next queued ack.
156 fn complete_current(

Callers 1

try_dispatch_blocksMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected