From 36128bf5ff8bf61d1a049cccf0dceaff95fbda47 Mon Sep 17 00:00:00 2001 From: David Senk Date: Sat, 7 Sep 2024 18:14:27 -0400 Subject: [PATCH] removed comment that doesnt apply anymore --- src/lib.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 4a134a4..23845e0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -23,12 +23,7 @@ impl StateOwner { //WARNING: As this is just a "proof of concept" //you can unintentionally cause deadlocks by trying to call - //.get_state() before closing out the transaction - //WARNING: StateKeeper can not be instantiated outside of this - //file as there is no public access to StateKeeper.state; however, - //.close_transaction() does not verify that the StateKeeper provided - //is the same one that was generated for &self, again, this is a "proof of concept" - //and handling this is outside the scope of the concept + //keeper.get_state() before closing out the transaction pub fn begin_transaction(&self) -> StateKeeper { StateKeeper { state: self.state.write().unwrap() } }