mirror of
https://github.com/eosswedenorg/thalos
synced 2026-11-10 05:56:45 +01:00
chore(api/msgpack): use reflect.TypeFor for map type
This commit is contained in:
parent
b6be9ce23a
commit
8098b76298
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ import (
|
|||
func createCodec() message.Codec {
|
||||
// Create handler.
|
||||
handle := codec.MsgpackHandle{}
|
||||
handle.MapType = reflect.TypeOf(map[string]any(nil))
|
||||
handle.MapType = reflect.TypeFor[map[string]any]()
|
||||
handle.Canonical = true
|
||||
|
||||
// Weird name but this is needed for the newest version of msgpack
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue