Formatting / Remove Debug
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
462a294c93
commit
035c6c669f
|
@ -360,10 +360,7 @@ func (e *engine) peerWithOnion(onion string) {
|
||||||
log.Debugf("Called PeerWithOnion for %v", onion)
|
log.Debugf("Called PeerWithOnion for %v", onion)
|
||||||
if !e.isBlocked(onion) {
|
if !e.isBlocked(onion) {
|
||||||
e.ignoreOnShutdown(e.peerConnecting)(onion)
|
e.ignoreOnShutdown(e.peerConnecting)(onion)
|
||||||
log.Debugf("PeerWithOnion Connecting %v", onion)
|
|
||||||
connected, err := e.service.Connect(onion, e.createPeerTemplate())
|
connected, err := e.service.Connect(onion, e.createPeerTemplate())
|
||||||
|
|
||||||
log.Debugf("PeerWithOnion %v %v", onion, err)
|
|
||||||
// If we are already connected...check if we are authed and issue an auth event
|
// If we are already connected...check if we are authed and issue an auth event
|
||||||
// (This allows the ui to be stateless)
|
// (This allows the ui to be stateless)
|
||||||
if connected && err != nil {
|
if connected && err != nil {
|
||||||
|
@ -373,13 +370,12 @@ func (e *engine) peerWithOnion(onion string) {
|
||||||
e.ignoreOnShutdown(e.peerAuthed)(onion)
|
e.ignoreOnShutdown(e.peerAuthed)(onion)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Debugf("PeerWithOnion something went very wrong...%v %v", onion, err)
|
log.Errorf("PeerWithOnion something went very wrong...%v %v", onion, err)
|
||||||
if conn != nil {
|
if conn != nil {
|
||||||
conn.Close()
|
conn.Close()
|
||||||
}
|
}
|
||||||
e.ignoreOnShutdown(e.peerDisconnected)(onion)
|
e.ignoreOnShutdown(e.peerDisconnected)(onion)
|
||||||
} else {
|
} else {
|
||||||
log.Debugf("PeerWithOnion %v %v", onion, err)
|
|
||||||
e.ignoreOnShutdown(e.peerDisconnected)(onion)
|
e.ignoreOnShutdown(e.peerDisconnected)(onion)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue