From fa6f5e201dfc6ea1e32a681fcae5ea1ff8975c5b Mon Sep 17 00:00:00 2001 From: Sir Darkrengarius Date: Mon, 25 Nov 2019 18:34:33 +0300 Subject: [PATCH] Fix `String` for consume rule not to cause panic --- pkg/routing/rule.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/routing/rule.go b/pkg/routing/rule.go index e9cb987596..4c405545a1 100644 --- a/pkg/routing/rule.go +++ b/pkg/routing/rule.go @@ -238,8 +238,8 @@ func (r Rule) String() string { switch t := r.Type(); t { case RuleConsume: rd := r.RouteDescriptor() - return fmt.Sprintf("APP(keyRtID:%d, resRtID:%d, %s)", - r.KeyRouteID(), r.NextRouteID(), rd.String()) + return fmt.Sprintf("APP(keyRtID:%d, %s)", + r.KeyRouteID(), rd.String()) case RuleForward: rd := r.RouteDescriptor() return fmt.Sprintf("FWD(keyRtID:%d, nxtRtID:%d, nxtTpID:%s, %s)",