Remove stuff that is not needed with new ConnectionMaker approach
This commit is contained in:
1 parent
84aeaf340a
commit
26f8a68a82
4 files changed
+1
-16
No files matched your search
+1
-6
@@ -37,14 +37,9 @@ func StartConnectionMaker(router *Router) *ConnectionMaker {
|
||||
func (cm *ConnectionMaker) InitiateConnection(address string) {
|
||||
cm.queryChan <- &ConnectionMakerInteraction{
|
||||
Interaction: Interaction{code: CMInitiate},
|
||||
isCmdLine: true,
|
||||
address: address}
|
||||
}
|
||||
|
||||
func (cm *ConnectionMaker) EnsureConnection(address string) {
|
||||
// Do nothing - we will figure out what to do later
|
||||
}
|
||||
|
||||
func (cm *ConnectionMaker) String() string {
|
||||
resultChan := make(chan interface{}, 0)
|
||||
cm.queryChan <- &ConnectionMakerInteraction{
|
||||
@@ -74,7 +69,7 @@ func (cm *ConnectionMaker) queryLoop(queryChan <-chan *ConnectionMakerInteractio
|
||||
}
|
||||
switch {
|
||||
case query.code == CMInitiate:
|
||||
cm.addToTargets(query.isCmdLine, query.address)
|
||||
cm.addToTargets(true, query.address)
|
||||
tickNow()
|
||||
case query.code == CMStatus:
|
||||
query.resultChan <- cm.status()
|
||||
|
||||
Reference in new issue
Block a user