|
|
@ -357,11 +357,14 @@ func (d *Driver) Client(ctx context.Context) (*client.Client, error) {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
td, _ := exp.(client.TracerDelegate)
|
|
|
|
var opts []client.ClientOpt
|
|
|
|
|
|
|
|
opts = append(opts, client.WithContextDialer(func(context.Context, string) (net.Conn, error) {
|
|
|
|
return client.New(ctx, "", client.WithContextDialer(func(context.Context, string) (net.Conn, error) {
|
|
|
|
|
|
|
|
return conn, nil
|
|
|
|
return conn, nil
|
|
|
|
}), client.WithTracerDelegate(td))
|
|
|
|
}))
|
|
|
|
|
|
|
|
if td, ok := exp.(client.TracerDelegate); ok {
|
|
|
|
|
|
|
|
opts = append(opts, client.WithTracerDelegate(td))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return client.New(ctx, "", opts...)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (d *Driver) Factory() driver.Factory {
|
|
|
|
func (d *Driver) Factory() driver.Factory {
|
|
|
|