MCPcopy Create free account
hub / github.com/cowprotocol/services / scripted_loop

Function scripted_loop

crates/autopilot-svm/src/run_loop.rs:475–483  ·  view source on GitHub ↗

A loop that runs the scripted cycles. Its liveness probe fails until the loop records an auction, and its startup probe fails until the first successful sync.

(
        cycles: impl IntoIterator<Item = (bool, NextAuction<TestAuction>)>,
    )

Source from the content-addressed store, hash-verified

473 /// the loop records an auction, and its startup probe fails until the
474 /// first successful sync.
475 fn scripted_loop(
476 cycles: impl IntoIterator<Item = (bool, NextAuction<TestAuction>)>,
477 ) -> (
478 AuctionLoop<TestCycle>,
479 Arc<Liveness>,
480 Arc<Option<AtomicBool>>,
481 ) {
482 scripted_loop_with(Box::new(Stub), cycles)
483 }
484
485 /// A [`scripted_loop`] whose cycles `trigger` fires.
486 fn scripted_loop_with(

Calls 2

scripted_loop_withFunction · 0.85
newFunction · 0.50

Tested by

no test coverage detected