This commit is contained in:
cdle
2023-06-16 00:40:56 +08:00
parent 7dfd7132e5
commit b900abaea3
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -40,6 +40,8 @@ func (s *PersistentKeyValueStore) Set(key string, value interface{}, dur int) er
ExpiredAt: expiredAt,
}
go func() {
s.RLock()
defer s.RUnlock()
defer func() {
recover()
}()