Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
comms
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xx network
comms
Commits
d5332910
Commit
d5332910
authored
Sep 15, 2020
by
Jonah Husson
Browse files
Options
Downloads
Plain Diff
Merge branch 'hotfix/sendErr' into 'release'
fix errors on send for gossip See merge request
!25
parents
bd179f5f
beba032a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
gossip/protocol.go
+1
-1
1 addition, 1 deletion
gossip/protocol.go
with
1 addition
and
1 deletion
gossip/protocol.go
+
1
−
1
View file @
d5332910
...
@@ -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
(
e
rr
,
"Failed to send to ID %s"
,
p
))
errs
=
append
(
errs
,
errors
.
WithMessagef
(
sendE
rr
,
"Failed to send to ID %s"
,
p
))
errCount
++
errCount
++
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment