Skip to content

Commit 7bf8535

Browse files
author
vilmibm
committed
restore cached client
1 parent 5f02ed2 commit 7bf8535

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/cmd/factory/default.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"fmt"
66
"net/http"
77
"os"
8+
"time"
89

910
"github.com/cli/cli/v2/api"
1011
"github.com/cli/cli/v2/context"
@@ -161,7 +162,8 @@ func extensionManager(f *cmdutil.Factory) *extension.Manager {
161162
if err != nil {
162163
return em
163164
}
164-
em.SetClient(client)
165+
166+
em.SetClient(api.NewCachedClient(client, time.Second*30))
165167

166168
return em
167169
}

0 commit comments

Comments
 (0)