Skip to content

Commit

Permalink
changed base implementation of trace.Detailer
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyasnikov committed Oct 14, 2024
1 parent 84a2b9b commit 0a8f7ee
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions trace/details.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ type Detailer interface {
Details() Details
}

var _ Detailer = (*Details)(nil)

type Details uint64

func (d Details) Details() Details {
return d
func (d *Details) Details() Details {
if d == nil {
return 0
}

return *d
}

func (d Details) String() string {
Expand Down

0 comments on commit 0a8f7ee

Please sign in to comment.