diff --git a/gossip/protocol.go b/gossip/protocol.go index b42a264bbe7ad7dfaa591b951f211f043c133029..228595a08a0be98317900ac4d19c06288f250eb9 100644 --- a/gossip/protocol.go +++ b/gossip/protocol.go @@ -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++ } }