Skip to content

Commit

Permalink
Merge pull request #890 from stacklok/fix-reconciler
Browse files Browse the repository at this point in the history
fix watermill error loop
  • Loading branch information
JAORMX authored Sep 7, 2023
2 parents e56ea82 + 4416a50 commit a9e7577
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/reconcilers/artifacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (e *Reconciler) handleRepoReconcilerEvent(msg *message.Message) error {

// validate event
validate := validator.New()
if err := validate.Struct(evt); err != nil {
if err := validate.Struct(&evt); err != nil {
// We don't return the event since there's no use
// retrying it if it's invalid.
log.Printf("error validating event: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion pkg/controlplane/handlers_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func (s *Server) CreatePolicy(ctx context.Context,
}

// This is a non-fatal error, so we'll just log it and continue with the next ones
if err := s.evt.Publish(reconcilers.InternalReconcilerEventTopic, msg); err != nil {
if err := s.evt.Publish(reconcilers.InternalPolicyInitEventTopic, msg); err != nil {
log.Printf("error publishing reconciler event: %v", err)
}

Expand Down

0 comments on commit a9e7577

Please sign in to comment.