Skip to content

Commit 4820a24

Browse files
Merge pull request #32 from dm3ch/fix-instancetype-deadlock
Fix deadlock on instancetype provider List() invokation
2 parents c8598a4 + 2277a16 commit 4820a24

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/providers/instancetype/instancetype.go

-3
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ func NewDefaultProvider(ctx context.Context, authOptions *auth.Credential) *Defa
7373
}
7474

7575
func (p *DefaultProvider) List(ctx context.Context, nodeClass *v1alpha1.GCENodeClass) ([]*cloudprovider.InstanceType, error) {
76-
p.muCache.Lock()
77-
defer p.muCache.Unlock()
78-
7976
vmTypes, err := p.getInstanceTypes(ctx)
8077
if err != nil {
8178
return nil, fmt.Errorf("listing instance types: %w", err)

0 commit comments

Comments
 (0)