mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-10 23:11:01 +00:00
better defer that Unlock
This commit is contained in:
parent
38cec6f20e
commit
088e60b830
1 changed files with 1 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ func (tm *TransactionManager) finish(id string) (Transaction, error) {
|
|||
// if there isn't one.
|
||||
func (tm *TransactionManager) Get(id string) (Transaction, error) {
|
||||
tm.mu.RLock()
|
||||
tm.mu.RUnlock()
|
||||
defer tm.mu.RUnlock()
|
||||
|
||||
return tm.store.Get(id)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue