Improve func ToSelectableFields performance for event
This commit is contained in:
@@ -121,7 +121,7 @@ func ToSelectableFields(event *api.Event) fields.Set {
|
|||||||
"source": source,
|
"source": source,
|
||||||
"type": event.Type,
|
"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.
|
// requestGroupVersion returns the group/version associated with the given context, or a zero-value group/version.
|
||||||
|
|||||||
Reference in New Issue
Block a user