mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-10 01:17:29 -06:00
Linter fixes
This commit is contained in:
parent
8b9a228ea2
commit
2cb7a8bf2a
4 changed files with 28 additions and 8 deletions
|
|
@ -238,12 +238,12 @@ func (r *realSender) sendToSubscription(
|
|||
return nil
|
||||
}
|
||||
|
||||
// gtsHttpClientRoundTripper helps wrap a GtS HTTP client back into a regular HTTP client,
|
||||
// gtsHTTPClientRoundTripper helps wrap a GtS HTTP client back into a regular HTTP client,
|
||||
// so that webpush-go can use our IP filters, bad hosts list, and retries.
|
||||
type gtsHttpClientRoundTripper struct {
|
||||
type gtsHTTPClientRoundTripper struct {
|
||||
httpClient *httpclient.Client
|
||||
}
|
||||
|
||||
func (r *gtsHttpClientRoundTripper) RoundTrip(request *http.Request) (*http.Response, error) {
|
||||
func (r *gtsHTTPClientRoundTripper) RoundTrip(request *http.Request) (*http.Response, error) {
|
||||
return r.httpClient.Do(request)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue