Skip to main content

add_cost

Function add_cost 

Source
pub(super) async fn add_cost(
    states: &Arc<Mutex<HashMap<String, BlockState>>>,
    block: &str,
    spent: f64,
)
Expand description

Put spent on a block’s state as its cost_usd, which is what the run’s ledger row sums.