raft: refine plus assignment

This commit is contained in:
Yicheng Qin
2014-09-14 22:07:32 -07:00
parent 54b9c55af3
commit 2927cc6e3b

View File

@@ -963,7 +963,7 @@ func (nw *network) cut(one, other int64) {
func (nw *network) isolate(id int64) {
for i := 0; i < len(nw.peers); i++ {
nid := 1 + int64(i)
nid := int64(i) + 1
if nid != id {
nw.drop(id, nid, 1.0)
nw.drop(nid, id, 1.0)