From 7bf85355a92b80437df7470b53e12a554238d0fc Mon Sep 17 00:00:00 2001 From: vilmibm Date: Wed, 22 Sep 2021 15:59:57 -0500 Subject: [PATCH] restore cached client --- pkg/cmd/factory/default.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/factory/default.go b/pkg/cmd/factory/default.go index 2ba926033..61bbe2c54 100644 --- a/pkg/cmd/factory/default.go +++ b/pkg/cmd/factory/default.go @@ -5,6 +5,7 @@ import ( "fmt" "net/http" "os" + "time" "github.com/cli/cli/v2/api" "github.com/cli/cli/v2/context" @@ -161,7 +162,8 @@ func extensionManager(f *cmdutil.Factory) *extension.Manager { if err != nil { return em } - em.SetClient(client) + + em.SetClient(api.NewCachedClient(client, time.Second*30)) return em }