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

@ -80,7 +80,7 @@ func main() {
hosts := make(map[string][]string, len(rawNodes))
logrus.Info("cluster members:\n")
for _, node := range rawNodes {
if err := node.Decode(); err != nil {
if err := node.DecodeMeta(); err != nil {
logrus.Warnf("\t addr: %s, could not decode metadata", node.Addr)
continue
}