fixed empty context in call to NewRemoteAllocator
This commit is contained in:
parent
d3bdaf6240
commit
f73f83e493
@ -162,7 +162,7 @@ func (c *Client) doRequestChrome(req *Request) (*Response, error) {
|
|||||||
var ctx context.Context
|
var ctx context.Context
|
||||||
var cancel context.CancelFunc
|
var cancel context.CancelFunc
|
||||||
if c.opt.RemoteAllocatorURL != "" {
|
if c.opt.RemoteAllocatorURL != "" {
|
||||||
ctx, cancel = chromedp.NewRemoteAllocator(ctx, c.opt.RemoteAllocatorURL)
|
ctx, cancel = chromedp.NewRemoteAllocator(context.Background(), c.opt.RemoteAllocatorURL)
|
||||||
} else {
|
} else {
|
||||||
ctx, cancel = chromedp.NewExecAllocator(context.Background(), c.opt.AllocatorOptions...)
|
ctx, cancel = chromedp.NewExecAllocator(context.Background(), c.opt.AllocatorOptions...)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user