removed comment that doesnt apply anymore
This commit is contained in:
@@ -23,12 +23,7 @@ impl StateOwner {
|
|||||||
|
|
||||||
//WARNING: As this is just a "proof of concept"
|
//WARNING: As this is just a "proof of concept"
|
||||||
//you can unintentionally cause deadlocks by trying to call
|
//you can unintentionally cause deadlocks by trying to call
|
||||||
//.get_state() before closing out the transaction
|
//keeper.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
|
|
||||||
pub fn begin_transaction(&self) -> StateKeeper {
|
pub fn begin_transaction(&self) -> StateKeeper {
|
||||||
StateKeeper { state: self.state.write().unwrap() }
|
StateKeeper { state: self.state.write().unwrap() }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user