Skip to content

Commit 3514694

Browse files
authored
Fix direct access to trap.Writer from trap.Labeler
1 parent fea4b81 commit 3514694

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/extractor/trap/labels.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (l *Labeler) GlobalID(key string) Label {
5757
label, exists := l.keyLabels[key]
5858
if !exists {
5959
id := l.nextID()
60-
fmt.Fprintf(l.tw.zip, "%s=@\"%s\"\n", id, escapeString(key))
60+
fmt.Fprintf(l.tw.wzip, "%s=@\"%s\"\n", id, escapeString(key))
6161
label = Label{id}
6262
l.keyLabels[key] = label
6363
}
@@ -90,7 +90,7 @@ func (l *Labeler) LocalID(nd interface{}) Label {
9090
// FreshID creates a fresh label and returns it
9191
func (l *Labeler) FreshID() Label {
9292
id := l.nextID()
93-
fmt.Fprintf(l.tw.zip, "%s=*\n", id)
93+
fmt.Fprintf(l.tw.wzip, "%s=*\n", id)
9494
return Label{id}
9595
}
9696

0 commit comments

Comments
 (0)