Skip to content

Commit

Permalink
Using error from cacheCtx
Browse files Browse the repository at this point in the history
  • Loading branch information
knabben committed Aug 16, 2022
1 parent 8b86290 commit 7645511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/remote/cluster_cache_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func (t *ClusterCacheTracker) newClusterAccessor(ctx context.Context, cluster cl
// Start the cache!!!
go cache.Start(cacheCtx) //nolint:errcheck
if !cache.WaitForCacheSync(cacheCtx) {
return nil, fmt.Errorf("failed waiting for cache for remote cluster %v to sync: %w", cluster, err)
return nil, fmt.Errorf("failed waiting for cache for remote cluster %v to sync: %w", cluster, cacheCtx.Err())
}

// Start cluster healthcheck!!!
Expand Down

0 comments on commit 7645511

Please sign in to comment.