From fe22f1972d0f64af798bafb0e2e5943179686439 Mon Sep 17 00:00:00 2001 From: welkin22 <136572398+welkin22@users.noreply.github.com> Date: Fri, 23 Aug 2024 10:55:06 +0800 Subject: [PATCH] fix(op-service): fallback client failed to switch URL in txmgr (#232) --- op-service/fallbackclient/dial.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op-service/fallbackclient/dial.go b/op-service/fallbackclient/dial.go index f47c6b542..3759a45fa 100644 --- a/op-service/fallbackclient/dial.go +++ b/op-service/fallbackclient/dial.go @@ -76,7 +76,7 @@ func DialEthClientWithTimeoutAndFallback(ctx context.Context, url string, timeou return nil, err } fallbackClient := NewFallbackClient(firstEthClient, urlList, l, fallbackThreshold, m, func(url string) (Client, error) { - ethClientNew, err := DialEthClientWithTimeout(ctx, timeout, l, url) + ethClientNew, err := DialEthClientWithTimeout(context.Background(), timeout, l, url) if err != nil { return nil, err }