Skip to content

Commit 8dca860

Browse files
authored
fix: fix slice init length
1 parent 7789818 commit 8dca860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/trace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ func (td *traceDispatcher) batchCommit(ctxs []TraceContext) {
419419
type Keyset map[string]struct{}
420420

421421
func (ks Keyset) slice() []string {
422-
slice := make([]string, len(ks))
422+
slice := make([]string, 0, len(ks))
423423
for k, _ := range ks {
424424
slice = append(slice, k)
425425
}

0 commit comments

Comments
 (0)