1
0
Fork 0
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:
Henrik Hautakoski 2026-08-29 13:56:06 +02:00
parent b6be9ce23a
commit 8098b76298

View file

@ -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