Skip to content

Commit

Permalink
Add items to work queue after Config.CreationDelay duration
Browse files Browse the repository at this point in the history
  • Loading branch information
alandotcom committed Jun 21, 2019
1 parent a5c0713 commit e874dde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ func (c *MonitorController) handleErr(err error, key interface{}) {
}

func (c *MonitorController) onResourceAdded(obj interface{}) {
c.queue.Add(ResourceUpdatedAction{
c.queue.AddAfter(ResourceUpdatedAction{
resource: obj,
})
}, c.config.CreationDelay)
}

func (c *MonitorController) onResourceUpdated(old interface{}, new interface{}) {
Expand Down

0 comments on commit e874dde

Please sign in to comment.