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

Method new

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

Source from the content-addressed store, hash-verified

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