Skip to content

Commit

Permalink
fix bug when deleting a binding in bindBindingInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielePalaia committed Mar 20, 2023
1 parent cab6718 commit 76b2049
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/binding_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ func (r *BindingReconciler) findBindingInfo(logger logr.Logger, binding *topolog
logger.Error(err, "failed to list binding infos")
return nil, err
}
var info *rabbithole.BindingInfo
info := new(rabbithole.BindingInfo)
for _, b := range bindingInfos {
if binding.Spec.RoutingKey == b.RoutingKey && reflect.DeepEqual(b.Arguments, arguments) {
info = &b
*info = b
}
}
return info, nil
Expand Down

0 comments on commit 76b2049

Please sign in to comment.