Skip to content

Why do commit methods require &mut self? #182

Description

@helloskyline-a11y

Hey there!

commit() requires &mut self, suggesting exclusive access enforced by the type system, while the implementation appears to rely on interior mutability and actor-style message passing (Mutex, atomics, channels) on database/mod.rs.

This makes the API look like a mix of static exclusivity and runtime synchronization models. Is there a specific reason for exposing commit() differently from the other operations?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions