mirror of
https://github.com/karust/openserp.git
synced 2026-08-15 05:04:16 +08:00
Fix CI
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
[](https://pkg.go.dev/github.com/karust/openserp)
|
||||
[](https://github.com/karust/openserp/releases)
|
||||
[](https://hub.docker.com/repository/docker/karust/openserp)
|
||||
[](https://github.com/karust/openserp/actions/workflows/ci.yml)
|
||||
[](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!
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user