Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Commit

Permalink
modify lasttime stamp to 5 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaakin-atl committed Jun 16, 2021
1 parent f50b41b commit 30e4027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kube/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (e *EventWatcher) OnUpdate(oldObj, newObj interface{}) {
func (e *EventWatcher) onEvent(event *corev1.Event) {
// TODO: Re-enable this after development
// It's probably an old event we are catching, it's not the best way but anyways
if time.Since(event.LastTimestamp.Time) > time.Second*60 {
if time.Since(event.LastTimestamp.Time) > time.Second*5 {
return
}

Expand Down

0 comments on commit 30e4027

Please sign in to comment.