-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add: limits.yaml #29
base: main
Are you sure you want to change the base?
add: limits.yaml #29
Conversation
hack/internal/yamlparser/yaml.go
Outdated
return err | ||
} | ||
|
||
return yaml.Unmarshal(bytes, &out) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this a pointer of a pointer then?
hack/upstream-features/upload.go
Outdated
if err = ensureFeatureProducts(syncedFeatures); err != nil { | ||
log.Println(err) | ||
os.Exit(1) | ||
func createFeatures(features []*licenseapi.Feature, syncedFeatures *map[string]syncedFeature, isLimit bool) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why pointer of a map?
hack/upstream-features/upload.go
Outdated
} | ||
|
||
func syncStripeFeatures(features []*licenseapi.Feature) map[string]syncedFeature { | ||
syncedFeatures := make(map[string]syncedFeature, len(features)) | ||
func ensureStripeFeatures(features []*licenseapi.Feature, syncedFeatures *map[string]syncedFeature, isLimit bool) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get rid of the pointer of a map here
No description provided.