Formatting / Remove Debug
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Sarah Jamie Lewis 2023-05-16 15:56:07 -07:00
parent 462a294c93
commit 035c6c669f
2 changed files with 2 additions and 6 deletions

View File

@ -18,7 +18,7 @@ func TestContactRetryQueue(t *testing.T) {
log.SetLevel(log.LevelDebug)
bus := event.NewEventManager()
cr := NewConnectionRetry(bus, "").(*contactRetry)
cr.ACNUp = true // fake an ACN connection...
cr.ACNUp = true // fake an ACN connection...
cr.protocolEngine = true // fake protocol engine
go cr.run()

View File

@ -360,10 +360,7 @@ func (e *engine) peerWithOnion(onion string) {
log.Debugf("Called PeerWithOnion for %v", onion)
if !e.isBlocked(onion) {
e.ignoreOnShutdown(e.peerConnecting)(onion)
log.Debugf("PeerWithOnion Connecting %v", onion)
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
// (This allows the ui to be stateless)
if connected && err != nil {
@ -373,13 +370,12 @@ func (e *engine) peerWithOnion(onion string) {
e.ignoreOnShutdown(e.peerAuthed)(onion)
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 {
conn.Close()
}
e.ignoreOnShutdown(e.peerDisconnected)(onion)
} else {
log.Debugf("PeerWithOnion %v %v", onion, err)
e.ignoreOnShutdown(e.peerDisconnected)(onion)
}
}