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

Merge branch 'hotfix/sendErr' into 'release'

fix errors on send for gossip

See merge request !25
parents bd179f5f beba032a
No related branches found
No related tags found
No related merge requests found
...@@ -223,7 +223,7 @@ func (p *Protocol) Gossip(msg *GossipMsg) (int, []error) { ...@@ -223,7 +223,7 @@ func (p *Protocol) Gossip(msg *GossipMsg) (int, []error) {
for _, p := range peers { for _, p := range peers {
sendErr := sendFunc(p) // TODO: Should this happen in a gofunc? sendErr := sendFunc(p) // TODO: Should this happen in a gofunc?
if sendErr != nil { 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++ errCount++
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment