diff --git a/README.md b/README.md index 8e19f12..6e39a23 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![Go Reference](https://pkg.go.dev/badge/github/karust/openserp?style=for-the-badge)](https://pkg.go.dev/github.com/karust/openserp) [![release](https://img.shields.io/github/release/karust/openserp)](https://github.com/karust/openserp/releases) [![Docker Pulls](https://img.shields.io/docker/v/karust/openserp)](https://hub.docker.com/repository/docker/karust/openserp) -[![CI](https://github.com/karust/openserp/actions/workflows/ci.yml/badge.svg?branch=tests)](https://github.com/karust/openserp/actions/workflows/ci.yml) +[![CI](https://github.com/karust/openserp/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/karust/openserp/actions/workflows/ci.yml) **OpenSERP** is an API and CLI for accessing search engine results from **Google, Yandex, Baidu, Bing, and DuckDuckGo**. A developer-friendly alternative to paid SERP API services! diff --git a/core/browser.go b/core/browser.go index c817b7e..1ea55f5 100644 --- a/core/browser.go +++ b/core/browser.go @@ -365,7 +365,7 @@ func ClosePageWithTimeout(ctx context.Context, page *rod.Page, timeout time.Dura // RecoverEnginePanic converts recovered panics to a typed engine error and // logs stack trace with engine context. func RecoverEnginePanic(engine string, recovered interface{}, logger *EngineLogger) error { - return RecoverEnginePanicWithContext(nil, engine, recovered, logger) + return RecoverEnginePanicWithContext(context.TODO(), engine, recovered, logger) } func RecoverEnginePanicWithContext(ctx context.Context, engine string, recovered interface{}, logger *EngineLogger) error { diff --git a/core/proxy.go b/core/proxy.go index 03074b0..c8ce179 100644 --- a/core/proxy.go +++ b/core/proxy.go @@ -352,7 +352,7 @@ func NewProxyRegistry(entries []ProxyEntryConfig, failureThreshold int) (*ProxyR } func (r *ProxyRegistry) NextByTag(tag string) string { - return r.NextByTagWithContext(nil, tag) + return r.NextByTagWithContext(context.TODO(), tag) } func (r *ProxyRegistry) NextByTagWithContext(ctx context.Context, tag string) string {