Improve func ToSelectableFields performance for event

This commit is contained in:
goodluckbot 2021-05-31 23:48:26 +08:00
parent 87984d84d1
commit eb114115fd

View File

@ -121,7 +121,7 @@ func ToSelectableFields(event *api.Event) fields.Set {
"source": source,
"type": event.Type,
}
return generic.MergeFieldsSets(objectMetaFieldsSet, specificFieldsSet)
return generic.MergeFieldsSets(specificFieldsSet, objectMetaFieldsSet)
}
// requestGroupVersion returns the group/version associated with the given context, or a zero-value group/version.