Skip to content

Commit

Permalink
set lastDAGRebuild after delivering the status updates
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmad Karimi <[email protected]>
  • Loading branch information
therealak12 committed Sep 2, 2023
1 parent e32e708 commit 0b807b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/contour/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -214,6 +213,7 @@ func (e *EventHandler) Start(ctx context.Context) error {
}

e.incSequence()
lastDAGRebuild = time.Now()
case <-ctx.Done():
// shutdown
return nil
Expand Down

0 comments on commit 0b807b1

Please sign in to comment.