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?
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) ondatabase/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?