Skip to content

Commit 77a5c13

Browse files
committed
Using error from cacheCtx.Err() for wait cache return
1 parent 8b86290 commit 77a5c13

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)