chore: fix incorrect number of routing rule stringer (#131)

This commit is contained in:
mzz
2023-06-11 12:47:50 +08:00
committed by GitHub
parent 24433d1479
commit ff2b025ba4

View File

@ -202,7 +202,7 @@ func (r *RoutingRule) String(replaceParamWithN bool, compact bool, quoteVal bool
}
}
var paramBuilder strings.Builder
n += len(f.Params)
n = len(f.Params)
if replaceParamWithN {
paramBuilder.WriteString("[n = " + strconv.Itoa(n) + "]")
} else {