diff --git a/server/common/cache.go b/server/common/cache.go index 4b453f6e..8df88be1 100644 --- a/server/common/cache.go +++ b/server/common/cache.go @@ -86,9 +86,9 @@ func NewKeyValueStore() KeyValueStore { func (this *KeyValueStore) Get(key string) interface{} { var val interface{} - this.Lock() + this.RLock() val = this.cache[key] - this.Unlock() + this.RUnlock() return val }