pub async fn send_post_commit(
    conductor_handle: ConductorHandle,
    workspace: SourceChainWorkspace,
    network: HolochainP2pDna,
    keystore: MetaLairClient,
    actions: Vec<SignedActionHashed>,
    zomes: Vec<CoordinatorZome>
) -> Result<(), SendError<()>>
Examples found in repository?
src/core/workflow/initialize_zomes_workflow.rs (lines 63-70)
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
pub async fn initialize_zomes_workflow<Ribosome>(
    workspace: SourceChainWorkspace,
    network: HolochainP2pDna,
    keystore: MetaLairClient,
    args: InitializeZomesWorkflowArgs<Ribosome>,
) -> WorkflowResult<InitResult>
where
    Ribosome: RibosomeT + Clone + 'static,
{
    let conductor_handle = args.conductor_handle.clone();
    let coordinators = args.ribosome.dna_def().get_all_coordinators();
    let result =
        initialize_zomes_workflow_inner(workspace.clone(), network.clone(), keystore.clone(), args)
            .await?;

    // --- END OF WORKFLOW, BEGIN FINISHER BOILERPLATE ---

    // only commit if the result was successful
    if result == InitResult::Pass {
        let flushed_actions = HostFnWorkspace::from(workspace.clone())
            .flush(&network)
            .await?;

        send_post_commit(
            conductor_handle,
            workspace,
            network,
            keystore,
            flushed_actions,
            coordinators,
        )
        .await?;
    }
    Ok(result)
}