refactor(store): use map.Copy for cleaner map handling (#24076)
Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
co-authored by
Alex | Interchain Labs
parent
73e2bba699
commit
f6fa4f25bd
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user