Skip to content

Commit

Permalink
Increased plugin fetch timeout limit to 30 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Neko-Box-Coder committed Aug 18, 2024
1 parent 61ec1c3 commit 36b5ab3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/config/plugin_installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (pc PluginChannels) Fetch(out io.Writer) PluginPackages {
// Fetch retrieves all available PluginPackages from the given channel
func (pc PluginChannel) Fetch(out io.Writer) PluginPackages {
client := http.Client {
Timeout: 10 * time.Second,
Timeout: 30 * time.Second,
}
resp, err := client.Get(string(pc))
if err != nil {
Expand All @@ -151,7 +151,7 @@ func (pc PluginChannel) Fetch(out io.Writer) PluginPackages {
// Fetch retrieves all available PluginPackages from the given repository
func (pr PluginRepository) Fetch(out io.Writer) PluginPackages {
client := http.Client {
Timeout: 10 * time.Second,
Timeout: 30 * time.Second,
}
resp, err := client.Get(string(pr))
if err != nil {
Expand Down Expand Up @@ -399,7 +399,7 @@ func GetInstalledPluginVersion(name string) string {
func (pv *PluginVersion) DownloadAndInstall(out io.Writer) error {
fmt.Fprintf(out, "Downloading %q (%s) from %q\n", pv.pack.Name, pv.Version, pv.Url)
client := http.Client {
Timeout: 10 * time.Second,
Timeout: 30 * time.Second,
}
resp, err := client.Get(pv.Url)
if err != nil {
Expand Down

0 comments on commit 36b5ab3

Please sign in to comment.