Implement weave forget command
This commit is contained in:
1 parent
066d8001dd
commit
dc8e82ea31
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 true
|
||||
}
|
||||
}
|
||||
|
||||
func (cm *ConnectionMaker) ConnectionTerminated(address string) {
|
||||
cm.actionChan <- func() bool {
|
||||
if target, found := cm.targets[address]; found {
|
||||
|
||||
Reference in new issue
Block a user