Closed freak12techno closed 1 month ago
The change modifies the Get
method of the Client
struct in the pkg/http/http.go
file. It introduces a check to assert if http.DefaultTransport
can be cast to *http.Transport
. If the assertion is successful, the transport is cloned using the Clone()
method; otherwise, the original http.DefaultTransport
is used directly. This adjustment allows for independent configuration of transport settings without altering the original default transport, and the timeout value is updated to a more readable format.
Files | Change Summary |
---|---|
pkg/http/http.go | Updated the Get method to check and clone http.DefaultTransport for independent configuration and modified the timeout value format. |
In the code where rabbits hop,
A transport clone will never stop.
With settings free to roam and play,
The default stays, come what may!
Hooray for changes, bright and new,
In our code, we’ll leap and chew! 🐇✨
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
5e72ba8
) to head (f6fdcf3
). Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary by CodeRabbit