Skip to content

Commit

Permalink
fix: rename variable for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
df-wg committed Jan 20, 2025
1 parent ebc619f commit a1e42d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v2/pkg/engine/resolve/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -626,8 +626,8 @@ func (r *Resolver) handleRemoveSubscription(id SubscriptionIdentifier) {
removed := 0
for u := range r.triggers {
trig := r.triggers[u]
removed += r.shutdownTriggerSubscriptions(u, func(a SubscriptionIdentifier) bool {
return a == id
removed += r.shutdownTriggerSubscriptions(u, func(sID SubscriptionIdentifier) bool {
return sID == id
})
if len(trig.subscriptions) == 0 {
r.shutdownTrigger(trig.id)
Expand Down

0 comments on commit a1e42d7

Please sign in to comment.