Skip to content
Snippets Groups Projects
Commit beba032a authored by Jonah Husson's avatar Jonah Husson
Browse files

fix errors on send for gossip

parent bd179f5f
Branches
Tags
No related merge requests found
......@@ -223,7 +223,7 @@ func (p *Protocol) Gossip(msg *GossipMsg) (int, []error) {
for _, p := range peers {
sendErr := sendFunc(p) // TODO: Should this happen in a gofunc?
if sendErr != nil {
errs = append(errs, errors.WithMessagef(err, "Failed to send to ID %s", p))
errs = append(errs, errors.WithMessagef(sendErr, "Failed to send to ID %s", p))
errCount++
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment