cleanup(ptx): remove redundant dialer definition (#644)

We can just use model.SimpleDialer here.

See https://github.com/ooni/probe/issues/1885.
This commit is contained in:
Simone Basso 2022-01-04 12:46:55 +01:00 committed by GitHub
commit 8afb3ee0d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 13 deletions

View file

@ -1,17 +1,8 @@
package ptx
import (
"context"
"net"
"github.com/ooni/probe-cli/v3/internal/model"
)
// UnderlyingDialer is the underlying dialer used for dialing.
type UnderlyingDialer interface {
// DialContext behaves like net.Dialer.DialContext.
DialContext(ctx context.Context, network, address string) (net.Conn, error)
}
// defaultLogger is the default silentLogger instance.
var defaultLogger model.Logger = model.DiscardLogger