Skip to content

Commit

Permalink
Comment and interface enforcement
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Nov 20, 2024
1 parent c79d88f commit 1a623af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dialer/dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func New(opts *Options) Dialer {
}

// NoDialer returns a dialer that does nothing. This is useful during startup
// until a real dialer is available.
// when we don't yet have proxies to dial through.
func NoDialer() Dialer {
return &noDialer{}
}
Expand All @@ -59,6 +59,9 @@ func (d *noDialer) DialContext(ctx context.Context, network, addr string) (net.C

func (d *noDialer) Close() {}

// Make sure noDialer implements Dialer
var _ Dialer = (*noDialer)(nil)

const (
// NetworkConnect is a pseudo network name to instruct the dialer to establish
// a CONNECT tunnel to the proxy.
Expand Down

0 comments on commit 1a623af

Please sign in to comment.