Skip to main content

publish_with_conflict_retry

Function publish_with_conflict_retry 

Source
pub async fn publish_with_conflict_retry<ApiClient>(
    api_client: &ApiClientWrapper<ApiClient>,
    conn: &impl DbQuery,
    update: UnverifiedIdentityUpdate,
    verifier: &impl SmartContractSignatureVerifier,
) -> Result<Cursor, IdentityUpdateError>
where ApiClient: XmtpApi,
Expand description

Reload and validate the signed update after a commit-time conflict. Retry the same signed bytes at most three times. Other errors are terminal.