From 3c865c66490e4d7f589c9d7f3377d4f08e648651 Mon Sep 17 00:00:00 2001 From: Jeanette Tan Date: Wed, 26 Mar 2025 00:09:15 +0800 Subject: [PATCH] Allow NewReadClient to take in more config options Signed-off-by: Jeanette Tan --- storage/remote/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/remote/client.go b/storage/remote/client.go index 714ee872e9..f00b3e7331 100644 --- a/storage/remote/client.go +++ b/storage/remote/client.go @@ -145,8 +145,8 @@ type ReadClient interface { } // NewReadClient creates a new client for remote read. -func NewReadClient(name string, conf *ClientConfig) (ReadClient, error) { - httpClient, err := config_util.NewClientFromConfig(conf.HTTPClientConfig, "remote_storage_read_client") +func NewReadClient(name string, conf *ClientConfig, optFuncs ...config_util.HTTPClientOption) (ReadClient, error) { + httpClient, err := config_util.NewClientFromConfig(conf.HTTPClientConfig, "remote_storage_read_client", optFuncs...) if err != nil { return nil, err }