Skip to content

Commit

Permalink
use DefaultTransport
Browse files Browse the repository at this point in the history
  • Loading branch information
sechmann committed Jun 7, 2024
1 parent c296e83 commit f18cb6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/apiserver/kolide/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ type Transport struct {
MaxHttpRetries int
}

var _ http.RoundTripper = &Transport{}

func NewTransport(token string) *Transport {
return &Transport{
Token: token,
Transport: http.DefaultClient.Transport,
Transport: http.DefaultTransport,
MaxHttpRetries: 10,
DefaultRetryAfter: time.Second,
}
Expand Down

0 comments on commit f18cb6d

Please sign in to comment.