mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-17 04:30:03 +02:00
transport/message/encoding.go: make Decoder type match common Unmarshal interface.
This commit is contained in:
parent
6ca9f408f9
commit
b46c070948
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue