mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-08 19:48:07 -06:00
Use httpclient.Client instead of standard net/http
This commit is contained in:
parent
d11efa1e2f
commit
c42c391094
12 changed files with 33 additions and 10 deletions
|
|
@ -23,6 +23,7 @@ import (
|
|||
"github.com/superseriousbusiness/gotosocial/internal/federation"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/filter/interaction"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/filter/visibility"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/httpclient"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/media"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/processing"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/state"
|
||||
|
|
@ -58,5 +59,6 @@ func NewTestProcessor(
|
|||
webPushSender,
|
||||
visibility.NewFilter(state),
|
||||
interaction.NewFilter(state),
|
||||
&httpclient.Client{}, // TODO: check if we need to replace it here
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ import (
|
|||
"github.com/superseriousbusiness/gotosocial/internal/email"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/filter/interaction"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/filter/visibility"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/httpclient"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/processing"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/processing/common"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/state"
|
||||
|
|
@ -106,6 +107,7 @@ func SetupTestStructs(
|
|||
webPushSender,
|
||||
visFilter,
|
||||
intFilter,
|
||||
&httpclient.Client{}, // TODO: check if we need to replace it here
|
||||
)
|
||||
|
||||
StartWorkers(&state, processor.Workers())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue