Skip to content

cross-process locks: make them optional #6105

@bnjbvr

Description

@bnjbvr

The crypto-store cross-process lock was optional:

if let Some(lock) = self.client.locks().cross_process_crypto_store_lock.get() {

Newer developments added a cross-process lock to both the media store and the event cache store. They're mandatory, which means they're going to cause lots of writes and additional churn for no good reasons, on some platforms that don't require it (e.g. Android, where it will affect battery consumption as well).

The intent of this issue is to make both these cross-process locks optional, for both stores, in the same way the crypto-store cross-process lock is optional.

cc @Hywan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions