Skip to content

Commit

Permalink
Merge pull request #39 from bgokden/refactor
Browse files Browse the repository at this point in the history
Avoid long running connection to service node
  • Loading branch information
bgokden authored Jul 2, 2021
2 parents 31c5041 + f1fd3ab commit 4da189c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions node/nodeservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ func (n *Node) SendJoinRequest(id string) error {
n.KnownIds = append(n.KnownIds, feedbackID)
}
}
conn.Close() // this connection should be closed time to time
// It is observed that it can cause a split brain due to two nodes
// sync to each other and never break connection
return nil
}

Expand Down

0 comments on commit 4da189c

Please sign in to comment.