From 068fdfb368ced11c0ae5850f41bb1b8c6bc6f720 Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Wed, 25 Oct 2023 14:54:41 +0800 Subject: [PATCH] feat: add api caller timeout --- pkg/common/apicall/call.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/apicall/call.go b/pkg/common/apicall/call.go index f5608460..7e2c1054 100644 --- a/pkg/common/apicall/call.go +++ b/pkg/common/apicall/call.go @@ -38,7 +38,7 @@ type baseApiResponse[T any] struct { } var client = &http.Client{ - Timeout: time.Second * 20, + Timeout: time.Second * 10, } type ApiCaller[Req, Resp any] interface {