Skip to content

Commit

Permalink
fix: do not send two delete events to update channel
Browse files Browse the repository at this point in the history
From #514
  • Loading branch information
chenjinxuan authored and hbagdi committed Jan 22, 2020
1 parent c910b79 commit 07185a0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/ingress/controller/event_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ func (reh ResourceEventHandler) OnDelete(obj interface{}) {
if !reh.IsValidIngresClass(object) {
return
}
reh.UpdateCh.In() <- Event{
Type: DeleteEvent,
Obj: obj,
}

reh.UpdateCh.In() <- Event{
Type: DeleteEvent,
Expand Down

0 comments on commit 07185a0

Please sign in to comment.