Skip to content

Commit

Permalink
update: avoid timeouts by increasing the default timeout
Browse files Browse the repository at this point in the history
Had a couple of transient errors reaching out to some debian and photon
source with the 10s timeout, increasing to 30s.

Signed-off-by: crozzy <joseph.crosland@gmail.com>
  • Loading branch information
crozzy committed Mar 26, 2024
1 parent ddc03cd commit 406b4f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cli/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func update(c *cli.Context) error {
}

cl := &http.Client{
Timeout: 10 * time.Second,
Timeout: 30 * time.Second,
}

matcherOpts := &libvuln.Options{
Expand Down

0 comments on commit 406b4f8

Please sign in to comment.