MCPcopy Create free account
hub / github.com/OpenKeyring/oak-keyring / push_metadata_atomic

Method push_metadata_atomic

src/cloud/storage.rs:123–152  ·  view source on GitHub ↗

Uploads metadata only if the remote metadata_version matches the expected one. This provides CAS (Compare-And-Swap) behavior for multi-device coordination. Uploads metadata only if the remote metadata_version matches the expected one. This provides CAS (Compare-And-Swap) behavior for multi-device coordination. Note: The read-check-write sequence is not atomic over the wire. Between the version ch

(
        &self,
        metadata: &CloudMetadata,
        expected_version: u64,
    )