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

Function scripted_loop

crates/autopilot-svm/src/run_loop.rs:508–516  ·  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

506 /// the loop records an auction, and its startup probe fails until the
507 /// first successful sync.
508 fn scripted_loop(
509 cycles: impl IntoIterator<Item = (bool, NextAuction<TestAuction>)>,
510 ) -> (
511 AuctionLoop<TestCycle>,
512 Arc<Liveness>,
513 Arc<Option<AtomicBool>>,
514 ) {
515 scripted_loop_with(Box::new(Stub), cycles)
516 }
517
518 /// A [`scripted_loop`] whose cycles `trigger` fires.
519 fn scripted_loop_with(

Calls 2

scripted_loop_withFunction · 0.85
newFunction · 0.50

Tested by

no test coverage detected