From 03e89a07dc15177ae1df2ea76b07531747142559 Mon Sep 17 00:00:00 2001 From: Nicolas Zin Date: Mon, 28 Oct 2024 10:03:52 -0400 Subject: [PATCH] let's force sync eaxch time we sync --- internal/goliac_server.go | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/internal/goliac_server.go b/internal/goliac_server.go index 98ffffe..a1493cb 100644 --- a/internal/goliac_server.go +++ b/internal/goliac_server.go @@ -587,14 +587,11 @@ func (g *GoliacServerImpl) Serve() { g.syncInterval-- time.Sleep(1 * time.Second) if g.syncInterval <= 0 { - // we want to sync - // if we just started, let's force sync - // otherwise, let's just sync - if g.lastUnmanaged == nil { - g.triggerApply(true) - } else { - g.triggerApply(false) - } + // we want to forceSync. + // because we want to reconciliate even if there + // is no new commit + // (and also it will populate the lastUnmanaged structure) + g.triggerApply(true) } } }