Refactor WaitForCapabilityOrClose #43
|
@ -76,7 +76,7 @@ func (s *BaseOnionService) WaitForCapabilityOrClose(cid string, name tapir.Capab
|
|||
}
|
||||
return true
|
||||
})
|
||||
log.Debugf("WaitForCapabilityOrClose attempts exceeded for %v all, connections closed", cid)
|
||||
log.Debugf("WaitForCapabilityOrClose attempts exceeded for %v, all connections closed", cid)
|
||||
return nil, errors.New("failed to acquire capability after multiple attempts, forcibly closing all connections with the peer")
|
||||
}
|
||||
|
||||
|
@ -96,7 +96,7 @@ func (s *BaseOnionService) WaitForCapabilityOrClose(cid string, name tapir.Capab
|
|||
log.Debugf("Found %v %v", conn, err)
|
||||
// If there are no active connections then return an error...
|
||||
if conn == nil {
|
||||
log.Debugf("Now active connection found for %v", cid)
|
||||
log.Debugf("no active connection found for %v", cid)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue