ethclient: implement Dial in terms of DialContext

This commit is contained in:
Lorenzo Manacorda 2018-03-14 21:42:13 +01:00
parent cbabb84560
commit ea4ced5bb0

View file

@ -39,11 +39,7 @@ type Client struct {
// Dial connects a client to the given URL.
func Dial(rawurl string) (*Client, error) {
c, err := rpc.Dial(rawurl)
if err != nil {
return nil, err
}
return NewClient(c), nil
return DialContext(context.Background(), rawurl)
}
func DialContext(ctx context.Context, rawurl string) (*Client, error) {