Implement weave forget command

This commit is contained in:
Adam Harrison committed 2015-03-26 10:48:25 +00:00
1 parent 066d8001dd
commit dc8e82ea31
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 true
}
}
func (cm *ConnectionMaker) ConnectionTerminated(address string) {
cm.actionChan <- func() bool {
if target, found := cm.targets[address]; found {