Failure only for top level failure
This commit is contained in:
parent
3cf6f976ae
commit
c80dca4a59
|
@ -144,7 +144,6 @@ func (r SMTPRunner) conn(addr string, port string) (net.Conn, bool) {
|
|||
conn, err := dialer.DialContext(r.ctx, "tcp", net.JoinHostPort(addr, port))
|
||||
r.tk.TCPConnect = append(r.tk.TCPConnect, r.trace.TCPConnects()...)
|
||||
if err != nil {
|
||||
r.tk.Failure = *tracex.NewFailure(err)
|
||||
return nil, false
|
||||
}
|
||||
return conn, true
|
||||
|
|
Loading…
Reference in New Issue
Block a user