Skip to content

Commit

Permalink
naming
Browse files Browse the repository at this point in the history
Signed-off-by: myan <[email protected]>
  • Loading branch information
yanmxa committed Apr 1, 2024
1 parent 1e15f7c commit ced4986
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/pkg/status/controller/generic/generic_object_emitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ func (e *genericObjectEmitter) Delete(object client.Object) bool {
func ObjectEmitterWrapper(eventType enum.EventType,
shouldUpdate func(client.Object) bool,
tweakFunc func(client.Object),
specUpdate bool,
isSpecHandler bool,
) ObjectEmitter {
eventData := genericpayload.GenericObjectBundle{}
return NewGenericObjectEmitter(
eventType,
&eventData,
NewGenericObjectHandler(&eventData, specUpdate),
NewGenericObjectHandler(&eventData, isSpecHandler),
WithShouldUpdate(shouldUpdate),
WithTweakFunc(tweakFunc),
)
Expand Down

0 comments on commit ced4986

Please sign in to comment.