From c8f20271a1cc692b1ff520cd7951dac02216def1 Mon Sep 17 00:00:00 2001 From: welkin22 Date: Thu, 22 Aug 2024 17:35:35 +0800 Subject: [PATCH] fix: dial func does not use upper context --- 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 }