mirror of
https://github.com/project-zot/zot.git
synced 2026-06-15 20:07:55 +08:00
pkg/api: use a rwlock when accessing storage
The original patch used a mutex, however, the workload patterns are likely to be read-heavy, so use a rwlock instead.
This commit is contained in:
@@ -148,7 +148,6 @@ func TestAPIs(t *testing.T) {
|
||||
_, _, _, err = il.GetImageManifest("test", d.String())
|
||||
So(err, ShouldNotBeNil)
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
err = il.DeleteBlobUpload("test", v)
|
||||
|
||||
Reference in New Issue
Block a user