fix: need to use new struct instance, not interface
This commit is contained in:
parent
56704ea184
commit
f279eb7e9d
|
@ -504,7 +504,7 @@ func (p *P2PServiceDefault) readNodeVotes(nodeId *encoding.NodeId) (service.Node
|
|||
return service.NewNodeVotes(), nil
|
||||
}
|
||||
|
||||
var score service.NodeVotes
|
||||
score := service.NewNodeVotes()
|
||||
err = msgpack.Unmarshal(value, &score)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in New Issue