Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/fastly/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func main() {
var (
args = os.Args[1:]
clientFactory = app.FastlyAPIClient
httpClient = &http.Client{Timeout: time.Second * 5}
httpClient = &http.Client{Timeout: time.Second * 15}
in io.Reader = os.Stdin
out io.Writer = sync.NewWriter(color.Output)
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func createArchive(assetBase, tmpDir string, data io.ReadCloser) (path string, e

_, err = io.Copy(archive, data)
if err != nil {
return "", fmt.Errorf("failed to download release asset: %w", err)
return "", fmt.Errorf("failed to copy the release asset response body: %w", err)
}

if err := archive.Close(); err != nil {
Expand Down