From 37e3e3f40d5784e4b299487f6bbece8bc1f9ed6b Mon Sep 17 00:00:00 2001 From: fangchengjin Date: Thu, 17 Nov 2022 11:08:54 +0800 Subject: [PATCH] fix: http client add request timeout --- client/TalosClientFactory.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client/TalosClientFactory.go b/client/TalosClientFactory.go index 6b3f1e5..f0d7d7d 100644 --- a/client/TalosClientFactory.go +++ b/client/TalosClientFactory.go @@ -60,6 +60,7 @@ func NewTalosClientFactory(ClientConfig *TalosClientConfig, time.Duration(ClientConfig.ClientConnTimeout())*time.Millisecond) }, }, + Timeout: time.Duration(ClientConfig.ClientTimeout()) * time.Millisecond, } return &TalosClientFactory{ talosClientConfig: ClientConfig,