Skip to content

Commit 8f7a213

Browse files
authored
Merge pull request #7068 from knabben/fix-cache-error
🐛Using cacheCtx on WaitForCacheSync error loading
2 parents c68588b + 77a5c13 commit 8f7a213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/remote/cluster_cache_tracker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func (t *ClusterCacheTracker) newClusterAccessor(ctx context.Context, cluster cl
266266
// Start the cache!!!
267267
go cache.Start(cacheCtx) //nolint:errcheck
268268
if !cache.WaitForCacheSync(cacheCtx) {
269-
return nil, fmt.Errorf("failed waiting for cache for remote cluster %v to sync: %w", cluster, err)
269+
return nil, fmt.Errorf("failed waiting for cache for remote cluster %v to sync: %w", cluster, cacheCtx.Err())
270270
}
271271

272272
// Start cluster healthcheck!!!

0 commit comments

Comments
 (0)