Skip to content

Commit

Permalink
Fix non-pointer method call
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkren committed Feb 10, 2020
1 parent 4999644 commit 32d2d0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,8 @@ func (r *router) rulesGC() {
// really care about the other ones, other rules removal
// doesn't affect our work here
if rule.Type() == routing.RuleConsume {
fwdRuleDesc := rule.RouteDescriptor().Invert()
cnsmRuleDesc := rule.RouteDescriptor()
fwdRuleDesc := cnsmRuleDesc.Invert()
rg, ok := r.routeGroup(fwdRuleDesc)
if !ok {
r.logger.Debugln("Couldn't remove route group after consume rule expired: route group not found")
Expand Down

0 comments on commit 32d2d0f

Please sign in to comment.