Skip to content

Commit 721845c

Browse files
committed
chore:adjust the order of extraction parameters, give priority to paramkey, and avoid the problem of paramIndex default value 0
1 parent b244a55 commit 721845c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/hotspot/traffic_shaping.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ func (c *baseTrafficShapingController) ExtractArgs(ctx *base.EntryContext) (valu
165165
if c == nil {
166166
return nil
167167
}
168-
value = c.extractArgs(ctx)
168+
value = c.extractAttachmentArgs(ctx)
169169
if value != nil {
170170
return
171171
}
172-
value = c.extractAttachmentArgs(ctx)
172+
value = c.extractArgs(ctx)
173173
if value != nil {
174174
return
175175
}

0 commit comments

Comments
 (0)