From 0a8f7ee07bb3c9b86e825f2387543da7718859c7 Mon Sep 17 00:00:00 2001 From: Aleksey Myasnikov Date: Mon, 14 Oct 2024 19:47:54 +0300 Subject: [PATCH] changed base implementation of trace.Detailer --- trace/details.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/trace/details.go b/trace/details.go index bbd318e25..f3048ff6a 100644 --- a/trace/details.go +++ b/trace/details.go @@ -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 {