(network, address string, timeout time.Duration)
| 469 | } |
| 470 | |
| 471 | func (d logDialer) DialTimeout(network, address string, timeout time.Duration) (net.Conn, error) { |
| 472 | ctx, cancel := context.WithTimeout(context.Background(), timeout) |
| 473 | defer cancel() |
| 474 | return d.DialContext(ctx, network, address) |
| 475 | } |
| 476 | |
| 477 | func (d logDialer) DialContext(ctx context.Context, network, address string) (net.Conn, error) { |
| 478 | deadline, hasDeadline := ctx.Deadline() |
no test coverage detected