Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
Signed-off-by: nabil salah <[email protected]>
  • Loading branch information
nabil salah committed Jan 1, 2025
1 parent 6f88363 commit 119af94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/flist/flist.go
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ func (f *flistModule) downloadInNamespace(name, u string) (resp *http.Response,
if err != nil {
return errors.Wrap(err, "failed to start tcp connection")
}
cl:= retryablehttp.NewClient()
cl := retryablehttp.NewClient()
cl.RetryMax = 5
cl.HTTPClient.Transport = &http.Transport{
DisableKeepAlives: true,
Expand Down
2 changes: 1 addition & 1 deletion pkg/provision/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ func isTwinVerified(twinID uint32) (verified bool, err error) {
request.URL.RawQuery = q.Encode()

cl := retryablehttp.NewClient()
cl.HTTPClient.Timeout = 10* time.Second
cl.HTTPClient.Timeout = 10 * time.Second

response, err := cl.StandardClient().Do(request)
if err != nil {
Expand Down

0 comments on commit 119af94

Please sign in to comment.