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 Aug 29, 2023
1 parent 61939aa commit b6b619c
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 b6b619c

Please sign in to comment.