pkg/storage: make Checker optional in storage.Backend (#1580)

* pkg/storage: make Checker optional in storage.Backend

* pass storage
This commit is contained in:
Marwan Sulaiman
2020-03-18 19:07:00 -04:00
committed by GitHub
parent 99867c743f
commit 0bb95c7351
10 changed files with 47 additions and 17 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ func benchExists(b *testing.B, s storage.Backend, clear func() error) {
b.Run("exists", func(b *testing.B) {
for i := 0; i < b.N; i++ {
exists, err := s.Exists(ctx, module, version)
exists, err := storage.WithChecker(s).Exists(ctx, module, version)
require.NoError(b, err)
require.True(b, exists)
}