From d2326bf24945309909bd3790abf57811141777f3 Mon Sep 17 00:00:00 2001 From: cuiweixie Date: Wed, 14 Jan 2026 00:56:07 +0800 Subject: [PATCH] triedb/hashdb: using reflect.TypeFor --- triedb/hashdb/database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/triedb/hashdb/database.go b/triedb/hashdb/database.go index 38392aa519..e7eec45d96 100644 --- a/triedb/hashdb/database.go +++ b/triedb/hashdb/database.go @@ -111,7 +111,7 @@ type cachedNode struct { // cachedNodeSize is the raw size of a cachedNode data structure without any // node data included. It's an approximate size, but should be a lot better // than not counting them. -var cachedNodeSize = int(reflect.TypeOf(cachedNode{}).Size()) +var cachedNodeSize = int(reflect.TypeFor[cachedNode]().Size()) // forChildren invokes the callback for all the tracked children of this node, // both the implicit ones from inside the node as well as the explicit ones