mirror of https://github.com/gofiber/fiber.git
Update memory.go The fix is to protect the access to s.db and save the result to a local variable.pull/2371/head
parent
01d39dbb81
commit
678728de6d
|
@ -139,5 +139,7 @@ func (s *Storage) gc() {
|
|||
|
||||
// Return database client
|
||||
func (s *Storage) Conn() map[string]entry {
|
||||
s.mux.RLock()
|
||||
defer s.mux.RUnlock()
|
||||
return s.db
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue