Skip to content

Commit

Permalink
Remove goroutine to execute OnReconcile
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Aug 22, 2023
1 parent 151c3f3 commit 070bdce
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ func (r *SubscriberReconciler) Reconcile(ctx context.Context, req ctrl.Request)
}

if r.OnReconcile != nil {
go func() {
r.OnReconcile(ctx, &workspace)
}()
r.OnReconcile(ctx, &workspace)
}

return ctrl.Result{}, nil
Expand Down

0 comments on commit 070bdce

Please sign in to comment.