Skip to content

Commit

Permalink
fix: fix #174, from design it seems we do not need explicitly close t…
Browse files Browse the repository at this point in the history
…he channel, GC will dismiss when no used anymore

Signed-off-by: Adrian Riobo Lorenzo <[email protected]>
  • Loading branch information
adrianriobo committed Dec 13, 2023
1 parent 5deb83a commit 652ceda
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/provider/aws/data/instance-type.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,5 @@ func LokupRegionOfferingInstanceType(instanceType string) (*string, error) {
}
// First region with offering is enoguh
oRegion := <-c
close(c)
return &oRegion, nil
}

0 comments on commit 652ceda

Please sign in to comment.