fix: need to use new struct instance, not interface

This commit is contained in:
Derrick Hammer 2024-02-29 12:50:20 -05:00
parent 56704ea184
commit f279eb7e9d
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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