Skip to content

Commit af916b2

Browse files
committed
fix lock
1 parent e70c7d6 commit af916b2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

providers/cluster-api/provider.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,8 @@ func (p *Provider) Get(_ context.Context, clusterName string) (cluster.Cluster,
128128
// Start starts the provider and blocks.
129129
func (p *Provider) Start(ctx context.Context, aware multicluster.Aware) error {
130130
p.lock.Lock()
131-
defer p.lock.Unlock()
132-
133131
p.aware = aware
132+
p.lock.Unlock()
134133

135134
p.log.Info("Starting Cluster-API cluster provider")
136135

0 commit comments

Comments
 (0)