ax(node): replace direct json.Unmarshal with package-local UnmarshalJSON wrapper
ParsePayload was calling encoding/json.Unmarshal directly, bypassing the package-local UnmarshalJSON wrapper that already exists in bufpool.go. Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
697394c1f4
commit
096d7e0137
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ func (message *Message) ParsePayload(target interface{}) error {
|
|||
if message.Payload == nil {
|
||||
return nil
|
||||
}
|
||||
return json.Unmarshal(message.Payload, target)
|
||||
return UnmarshalJSON(message.Payload, target)
|
||||
}
|
||||
|
||||
// --- Payload Types ---
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue