modify lasttime stamp to 5 seconds

This commit is contained in:
Mustafa Akın
2021-06-16 22:47:51 +03:00
parent f50b41b9dd
commit 30e4027760
+1 -1
View File
@@ -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
}