From 0b807b1413469e97fca3f7df78e07f71f27cfb27 Mon Sep 17 00:00:00 2001 From: Ahmad Karimi Date: Tue, 29 Aug 2023 17:30:48 +0330 Subject: [PATCH] set lastDAGRebuild after delivering the status updates Signed-off-by: Ahmad Karimi --- internal/contour/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/contour/handler.go b/internal/contour/handler.go index c15e744489c..716bf982053 100644 --- a/internal/contour/handler.go +++ b/internal/contour/handler.go @@ -202,7 +202,6 @@ func (e *EventHandler) Start(ctx context.Context) error { // Build a new DAG and sends it to the Observer. latestDAG := e.builder.Build() - lastDAGRebuild = time.Now() e.observer.OnChange(latestDAG) // Allow XDS server to start (if it hasn't already). @@ -214,6 +213,7 @@ func (e *EventHandler) Start(ctx context.Context) error { } e.incSequence() + lastDAGRebuild = time.Now() case <-ctx.Done(): // shutdown return nil