Skip to content

Commit 396b546

Browse files
authored
pkg/controller: Test commit (#2382)
Signed-off-by: timflannagan <[email protected]>
1 parent 81e7a60 commit 396b546

File tree

1 file changed

+2
-2
lines changed
  • pkg/controller/registry/resolver/cache

1 file changed

+2
-2
lines changed

pkg/controller/registry/resolver/cache/cache.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ type NamespacedOperatorCache struct {
136136
func (c *NamespacedOperatorCache) Error() error {
137137
var errs []error
138138
for key, snapshot := range c.snapshots {
139-
snapshot.m.Lock()
139+
snapshot.m.RLock()
140140
err := snapshot.err
141-
snapshot.m.Unlock()
141+
snapshot.m.RUnlock()
142142
if err != nil {
143143
errs = append(errs, fmt.Errorf("error using catalog %s (in namespace %s): %w", key.Name, key.Namespace, err))
144144
}

0 commit comments

Comments
 (0)