MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / new

Method new

src/executor/shared/fifo.rs:36–49  ·  view source on GitHub ↗
(ctl_fifo: &Path, ack_fifo: &Path)

Source from the content-addressed store, hash-verified

34
35impl GenericFifo {
36 pub fn new(ctl_fifo: &Path, ack_fifo: &Path) -> anyhow::Result<Self> {
37 create_fifo(ctl_fifo)?;
38 create_fifo(ack_fifo)?;
39
40 let ctl_sender = open_fifo_sender(ctl_fifo)?;
41 let ack_reader = open_fifo_receiver(ack_fifo)?;
42
43 Ok(Self {
44 ctl_path: ctl_fifo.to_path_buf(),
45 ack_path: ack_fifo.to_path_buf(),
46 ctl_sender,
47 ack_reader,
48 })
49 }
50
51 pub fn ctl_sender(&mut self) -> &mut TokioPipeSender {
52 &mut self.ctl_sender

Callers

nothing calls this directly

Calls 3

create_fifoFunction · 0.85
open_fifo_senderFunction · 0.85
open_fifo_receiverFunction · 0.85

Tested by

no test coverage detected