Skip to content

Commit 882140d

Browse files
authored
Update internal/background/worker.go
1 parent 51c5ca6 commit 882140d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/background/worker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (b *Worker) starterLoop(ctx context.Context) {
145145
go func(task backgroundTask) {
146146
defer b.workers.Done()
147147

148-
safeLabel := strings.Replace(task.name, `"`, `'`, -1)
148+
safeLabel := strings.ReplaceAll(task.name, `"`, `'`)
149149

150150
pprof.Do(ctx, pprof.Labels("background", safeLabel), task.callback)
151151
}(bgTask)

0 commit comments

Comments
 (0)