Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Lopez Rubio <[email protected]>
  • Loading branch information
marclop committed Oct 13, 2021
1 parent 82bcc1b commit c9d42c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions span_compressed.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,7 @@ type compressedSpan struct {
}

// evict resets the cache to nil and returns the cached span after adjusting
// its Name, Duration, and timers. It will set `s.fromCache` in the span that's
// been returned to avoid the `span.End()` from entering an infinite loop.
// its Name, Duration, and timers.
//
// Should be only be called from Transaction.End() and Span.End().
func (cs *compressedSpan) evict() *Span {
Expand Down

0 comments on commit c9d42c2

Please sign in to comment.