From b46c07094857031eb26ac33a97ad884ceb5430b4 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 21 Feb 2023 10:56:36 +0100 Subject: [PATCH] transport/message/encoding.go: make Decoder type match common Unmarshal interface. --- transport/message/encoding.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/message/encoding.go b/transport/message/encoding.go index 0edd52b..7174dcf 100644 --- a/transport/message/encoding.go +++ b/transport/message/encoding.go @@ -4,7 +4,7 @@ package message type Encoder func(any) ([]byte, error) // Decoder is a function that can decode a format into an object -type Decoder func(any, []byte) error +type Decoder func([]byte, any) error // Codec is a type that can has a matching Encoder and Decoder function. type Codec struct {