Skip to main content

submit

Function submit 

Source
pub fn submit(
    config: &ClientConfig,
    request: &CommitRequest,
    notices: &mut dyn Write,
) -> Result<Submitted, ClientFailure>
Expand description

What: Sends a commit request and waits until it is answered. Why: The same identity goes with every send, so a service that landed the commit and died before answering reports it as already landed, and nothing lands twice.

In TS you’d write (pseudocode):

await submit(config, request, notices)