Merge pull request #488 from awh/486_administrative_peer_removal

Implement 'weave forget' command

Closes #486.
This commit is contained in:
rade committed 2015-03-27 01:53:16 +00:00
commit 245f747745
4 files changed
+30 -1

No files matched your search

+7
View File
@@ -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 {