Skip to main content

verify_correlation

Function verify_correlation 

Source
pub fn verify_correlation(
    provider_id: &str,
    sent: Option<&str>,
    echoed: Option<&str>,
) -> Result<(), HostError>
Expand description

Check that a reply carries the correlation id of the request it answers (SPEC.md §H4).

sent is None when the provider did not declare correlation, in which case the exchange is lock-step and there is nothing to verify.