Merge pull request #488 from awh/486_administrative_peer_removal
Implement 'weave forget' command Closes #486.
This commit is contained in:
commit
245f747745
4 files changed
+30
-1
No files matched your search
@@ -52,6 +52,13 @@ func (cm *ConnectionMaker) InitiateConnection(address string) {
|
||||
}
|
||||
}
|
||||
|
||||
func (cm *ConnectionMaker) ForgetConnection(address string) {
|
||||
cm.actionChan <- func() bool {
|
||||
delete(cm.cmdLineAddress, NormalisePeerAddr(address))
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
func (cm *ConnectionMaker) ConnectionTerminated(address string) {
|
||||
cm.actionChan <- func() bool {
|
||||
if target, found := cm.targets[address]; found {
|
||||
|
||||
Reference in new issue
Block a user