Rename node.Decode and node.Encode

EncodeMeta and DecodeMeta are more explicit.
This commit is contained in:
kaiyou
2020-05-10 18:12:47 +02:00
committed by Leo Antunes
parent 078946dbdd
commit 32a300ffeb
4 changed files with 8 additions and 8 deletions

View File

@ -20,7 +20,7 @@ func (n *delegateNode) NotifyConflict(node, other *memberlist.Node) {
// Metadata is provided by the local node settings, encoding is handled
// by the node implementation directly
func (n *delegateNode) NodeMeta(limit int) []byte {
encoded, err := n.Encode(limit)
encoded, err := n.EncodeMeta(limit)
if err != nil {
logrus.Errorf("failed to encode local node: %s", err)
return nil