Skip to content

Commit

Permalink
increase grpc request timeout from 5 to 30 sec
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
  • Loading branch information
butonic committed Nov 23, 2023
1 parent 40e2f69 commit 50e74e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ocis-pkg/service/grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -67,6 +68,7 @@ func NewClient(opts ...ClientOption) (client.Client, error) {
reg := registry.GetRegistry()
var tlsConfig *tls.Config
cOpts := []client.Option{
client.RequestTimeout(30 * time.Second),
client.Registry(reg),
client.Wrap(mbreaker.NewClientWrapper()),
client.Wrap(mtracer.NewClientWrapper(
Expand Down

0 comments on commit 50e74e6

Please sign in to comment.