OSDN Git Service
(root)
/
bytom
/
bytom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35785a8
)
fix SyncManager Peer and Switch peer not match (#560)
author
Yongfeng LI
<wliyongfeng@gmail.com>
Mon, 9 Apr 2018 07:49:46 +0000
(15:49 +0800)
committer
Paladz
<yzhu101@uottawa.ca>
Mon, 9 Apr 2018 07:49:46 +0000
(15:49 +0800)
netsync/peer.go
patch
|
blob
|
history
diff --git
a/netsync/peer.go
b/netsync/peer.go
index
9ca4d1f
..
f37cba5
100644
(file)
--- a/
netsync/peer.go
+++ b/
netsync/peer.go
@@
-165,7
+165,6
@@
func (ps *peerSet) DropPeer(id string) error {
if !ok {
return errNotRegistered
}
- delete(ps.peers, id)
peer.CloseConn()
return nil
}