restore cached client

This commit is contained in:
vilmibm 2021-09-22 15:59:57 -05:00
parent 5f02ed2656
commit 7bf85355a9

View file

@ -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
}