code: func notifyTimeout(eventDelayS int) time.Duration {
  	shortDelayS := 10
  	shortDelayMultiplicator := 6
  	longDelayS := 60
  	longDelayTimeout := time.Duration(1) * time.Minute
  	if eventDelayS < shortDelayS {
  		return time.Duration(eventDelayS*shortDelayMultiplicator) * time.Second
  	}
  	if eventDelayS < longDelayS {
  		return longDelayTimeout
  	}
  	return time.Duration(eventDelayS) * time.Second
  }
docs: // Events that involve removals or continuously receive new modifications are
  // delayed but must time out at some point. The following numbers come out of thin
  // air, they were just considered as a sensible compromise between fast updates and
  // saving resources. For short delays the timeout is 6 times the delay, capped at 1
  // minute. For delays longer than 1 minute, the delay and timeout are equal.