fix: DecodeMessage needs to be by ref
This commit is contained in:
parent
a5ac5af154
commit
b3a6d6ddcc
|
@ -123,7 +123,7 @@ func (h HandshakeDone) HandleMessage(node interfaces.Node, peer net.Peer, verify
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h HandshakeDone) DecodeMessage(dec *msgpack.Decoder) error {
|
func (h *HandshakeDone) DecodeMessage(dec *msgpack.Decoder) error {
|
||||||
challenge, err := dec.DecodeBytes()
|
challenge, err := dec.DecodeBytes()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue