outposts/proxy: fix session not expiring correctly due to miscalculation
closes #1976 Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
@ -194,12 +194,7 @@ func (ac *APIController) startWSHealth() {
|
||||
func (ac *APIController) startIntervalUpdater() {
|
||||
logger := ac.logger.WithField("loop", "interval-updater")
|
||||
ticker := time.NewTicker(5 * time.Minute)
|
||||
initial := false
|
||||
for ; true; <-ticker.C {
|
||||
if !initial {
|
||||
initial = true
|
||||
continue
|
||||
}
|
||||
logger.Debug("Running interval update")
|
||||
err := ac.OnRefresh()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user