Skip to content

Commit

Permalink
Merge pull request #970 from bdarnell/gossip-err
Browse files Browse the repository at this point in the history
Fix an overly-sensitive error check in gosssip.
  • Loading branch information
bdarnell committed May 8, 2015
2 parents 7cee55b + 33d32df commit 67ad8d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gossip/infostore.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,11 +365,12 @@ func (is *infoStore) combine(delta *infoStore) int {
i.seq = is.seqGen
i.Hops++
i.peerID = delta.NodeID
err := is.addInfo(i)
if err == nil {
// Errors from addInfo here are not a problem; they simply
// indicate that the data in *is is newer than in *delta.
if err := is.addInfo(i); err == nil {
freshCount++
}
return err
return nil
}); err != nil {
log.Errorf("failed to properly combine infoStores: %s", err)
}
Expand Down

0 comments on commit 67ad8d8

Please sign in to comment.