MCPcopy Index your code
hub / github.com/coder/coder / DialTimeout

Method DialTimeout

coderd/database/pubsub/pubsub.go:471–475  ·  view source on GitHub ↗
(network, address string, timeout time.Duration)

Source from the content-addressed store, hash-verified

469}
470
471func (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
477func (d logDialer) DialContext(ctx context.Context, network, address string) (net.Conn, error) {
478 deadline, hasDeadline := ctx.Deadline()

Callers 1

createWorkspaceWithAppsFunction · 0.80

Calls 1

DialContextMethod · 0.95

Tested by

no test coverage detected