mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-29 19:56:14 -06:00
small formatting changes (no logic)
This commit is contained in:
parent
7b7fc528f1
commit
0fab27b0ea
4 changed files with 19 additions and 35 deletions
|
|
@ -41,14 +41,17 @@ type Sender interface {
|
|||
|
||||
// NewSender creates a new sender from an HTTP client, DB, and worker pool.
|
||||
func NewSender(httpClient *httpclient.Client, state *state.State, converter *typeutils.Converter) Sender {
|
||||
return NewRealSender(
|
||||
&http.Client{
|
||||
Transport: >sHTTPClientRoundTripper{
|
||||
httpClient: httpClient,
|
||||
},
|
||||
// Other fields are already set on the http.Client inside the httpclient.Client.
|
||||
return &realSender{
|
||||
httpClient: &http.Client{
|
||||
// Pass in our wrapped httpclient.Client{}
|
||||
// type as http.Transport{} in order to take
|
||||
// advantage of retries, SSF protection etc.
|
||||
Transport: httpClient,
|
||||
|
||||
// Other http.Client{} fields are already
|
||||
// set in embedded httpclient.Client{}.
|
||||
},
|
||||
state,
|
||||
converter,
|
||||
)
|
||||
state: state,
|
||||
converter: converter,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue