refactor(store): use map.Copy for cleaner map handling (#24076)

Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
healthyyyoung
2025-03-20 22:22:52 +00:00
committed by GitHub
co-authored by Alex | Interchain Labs
parent 73e2bba699
commit f6fa4f25bd
3 changed files with 7 additions and 12 deletions
+2 -3
View File
@@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"io"
"maps"
"math"
"sort"
"strings"
@@ -383,9 +384,7 @@ func (rs *Store) getTracingContext() types.TraceContext {
}
ctx := types.TraceContext{}
for k, v := range rs.traceContext {
ctx[k] = v
}
maps.Copy(ctx, rs.traceContext)
return ctx
}