From a42ce02bba83c880b5def26600ac9f9175d64a17 Mon Sep 17 00:00:00 2001 From: timflannagan Date: Thu, 30 Sep 2021 16:12:51 -0400 Subject: [PATCH] pkg/controller: Test commit Signed-off-by: timflannagan --- pkg/controller/registry/resolver/cache/cache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controller/registry/resolver/cache/cache.go b/pkg/controller/registry/resolver/cache/cache.go index 10ca6d07d8..8a42dd2540 100644 --- a/pkg/controller/registry/resolver/cache/cache.go +++ b/pkg/controller/registry/resolver/cache/cache.go @@ -136,9 +136,9 @@ type NamespacedOperatorCache struct { func (c *NamespacedOperatorCache) Error() error { var errs []error for key, snapshot := range c.snapshots { - snapshot.m.Lock() + snapshot.m.RLock() err := snapshot.err - snapshot.m.Unlock() + snapshot.m.RUnlock() if err != nil { errs = append(errs, fmt.Errorf("error using catalog %s (in namespace %s): %w", key.Name, key.Namespace, err)) }