Skip to content

Commit

Permalink
bug: fix slice init length (#16674)
Browse files Browse the repository at this point in the history
Signed-off-by: cuishuang <[email protected]>
  • Loading branch information
cuishuang authored Aug 28, 2024
1 parent a7237b2 commit d0d2679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/trace/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func StartTracing(serviceName string) io.Closer {
}

func fail(serviceName string) io.Closer {
options := make([]string, len(tracingBackendFactories))
options := make([]string, 0, len(tracingBackendFactories))
for k := range tracingBackendFactories {
options = append(options, k)
}
Expand Down

0 comments on commit d0d2679

Please sign in to comment.