The get `getOrCreateMutex` function copies mutexes which the golang docs specifically tell us not to do: https://golang.org/pkg/sync/#Mutex Also, the delete function was creating a mutex for the resource, not the collection.
6.0 KiB
6.0 KiB