From bea34cd758187ba1fc0c272e29ed0917ee313408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Thu, 23 Nov 2023 11:11:46 +0100 Subject: [PATCH] increase grpc request timeout from 5 to 10 sec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- ocis-pkg/service/grpc/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ocis-pkg/service/grpc/client.go b/ocis-pkg/service/grpc/client.go index f8e857882ed..26b7d31a567 100644 --- a/ocis-pkg/service/grpc/client.go +++ b/ocis-pkg/service/grpc/client.go @@ -5,6 +5,7 @@ import ( "crypto/x509" "errors" "os" + "time" mgrpcc "github.com/go-micro/plugins/v4/client/grpc" mbreaker "github.com/go-micro/plugins/v4/wrapper/breaker/gobreaker" @@ -67,6 +68,7 @@ func NewClient(opts ...ClientOption) (client.Client, error) { reg := registry.GetRegistry() var tlsConfig *tls.Config cOpts := []client.Option{ + client.RequestTimeout(10 * time.Second), client.Registry(reg), client.Wrap(mbreaker.NewClientWrapper()), client.Wrap(mtracer.NewClientWrapper(