Skip to content

Commit

Permalink
client: fix trace (#8847)
Browse files Browse the repository at this point in the history
close #8534

Signed-off-by: Ryan Leung <rleungx@gmail.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
  • Loading branch information
rleungx and ti-chi-bot[bot] authored Nov 25, 2024
1 parent 21a04cb commit 52b42b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/tso_dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,10 +546,10 @@ func (td *tsoDispatcher) processRequests(
}
}
defer func() {
for i := range spans {
for i := len(spans) - 1; i >= 0; i-- {
spans[i].Finish()
}
for i := range traceRegions {
for i := len(traceRegions) - 1; i >= 0; i-- {
traceRegions[i].End()
}
}()
Expand Down

0 comments on commit 52b42b2

Please sign in to comment.