From f73f83e49323b3e92e3d8e4dbe2b86a4e3ed7186 Mon Sep 17 00:00:00 2001 From: Albert Bronsky <44101337+albertbronsky@users.noreply.github.com> Date: Sun, 8 Aug 2021 14:07:08 +0300 Subject: [PATCH] fixed empty context in call to NewRemoteAllocator --- client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/client.go b/client/client.go index c4e2c57..f3b61bb 100644 --- a/client/client.go +++ b/client/client.go @@ -162,7 +162,7 @@ func (c *Client) doRequestChrome(req *Request) (*Response, error) { var ctx context.Context var cancel context.CancelFunc if c.opt.RemoteAllocatorURL != "" { - ctx, cancel = chromedp.NewRemoteAllocator(ctx, c.opt.RemoteAllocatorURL) + ctx, cancel = chromedp.NewRemoteAllocator(context.Background(), c.opt.RemoteAllocatorURL) } else { ctx, cancel = chromedp.NewExecAllocator(context.Background(), c.opt.AllocatorOptions...) }