Skip to content

Commit

Permalink
fix: controller debug message - sotw has not changed
Browse files Browse the repository at this point in the history
Signed-off-by: Guilherme Cassolato <[email protected]>
  • Loading branch information
guicassolato committed Oct 25, 2024
1 parent d33de83 commit c48f76a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,9 @@ func (c *Controller) handleCacheEvent(snapshot watchable.Snapshot[string, Store]
events = append(events, deleteEvents...)

if len(events) > 0 { // this condition is actually redundant; if the snapshot has updates, there must be events
c.logger.V(1).Info("state of the world has not changed")
c.propagate(events)
} else {
c.logger.V(1).Info("state of the world has not changed")
}

return objs
Expand Down

0 comments on commit c48f76a

Please sign in to comment.