mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
Fix some invalid unlocks from the last change
This commit is contained in:
@@ -35,7 +35,6 @@ func (s *Store) Get(key string) interface{} {
|
||||
if value, found := s.values[key]; found {
|
||||
return value
|
||||
}
|
||||
s.mu.Unlock()
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -109,7 +108,7 @@ func (s *Store) SetLastAccessedTime(lastacc time.Time) {
|
||||
s.lastAccessedTime = lastacc
|
||||
}
|
||||
|
||||
// Destroy
|
||||
// Destroy deletes all keys
|
||||
func (s *Store) Destroy() {
|
||||
// clears without provider's update.
|
||||
s.mu.Lock()
|
||||
|
||||
@@ -95,7 +95,6 @@ func (s *Store) VisitAll(cb func(k string, v interface{})) {
|
||||
func (s *Store) Get(key string) interface{} {
|
||||
Provider.Update(s.sid)
|
||||
if value, found := s.values[key]; found {
|
||||
s.mu.Unlock()
|
||||
return value
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user