Skip to content

Commit fbd2d1d

Browse files
committed
chore(tmplexec): it's request ID lol sorry
Signed-off-by: Dwi Siswanto <[email protected]>
1 parent ee23896 commit fbd2d1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/tmplexec/utils/utils.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99

1010
// FillPreviousEvent is a helper function to get the previous event from the event
1111
// without leading to duplicate prefixes
12-
func FillPreviousEvent(protoID string, event *output.InternalWrappedEvent, previous *mapsutil.SyncLockMap[string, any]) {
13-
if protoID == "" {
12+
func FillPreviousEvent(reqID string, event *output.InternalWrappedEvent, previous *mapsutil.SyncLockMap[string, any]) {
13+
if reqID == "" {
1414
return
1515
}
1616

@@ -19,13 +19,13 @@ func FillPreviousEvent(protoID string, event *output.InternalWrappedEvent, previ
1919
continue
2020
}
2121

22-
if strings.HasPrefix(k, protoID+"_") {
22+
if strings.HasPrefix(k, reqID+"_") {
2323
continue
2424
}
2525

2626
var builder strings.Builder
2727

28-
builder.WriteString(protoID)
28+
builder.WriteString(reqID)
2929
builder.WriteString("_")
3030
builder.WriteString(k)
3131

0 commit comments

Comments
 (0)