summaryrefslogtreecommitdiff
path: root/internal/transport/controller.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-04-02 12:12:26 +0100
committerLibravatar GitHub <noreply@github.com>2024-04-02 13:12:26 +0200
commitd61d5c8a6ad045fe7779fe8d0efe2fd06f691fba (patch)
tree12b1f1ed8e2cee3875c74347e0f034bbb8f57134 /internal/transport/controller.go
parent[chore] Try to parse public key as both Actor + bare key (#2710) (diff)
downloadgotosocial-d61d5c8a6ad045fe7779fe8d0efe2fd06f691fba.tar.xz
[bugfix] httpclient not signing subsequent redirect requests (#2798)
* move http request signing to transport * actually hook up the http roundtripper ... * add code comments for the new gtscontext functions
Diffstat (limited to 'internal/transport/controller.go')
-rw-r--r--internal/transport/controller.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/transport/controller.go b/internal/transport/controller.go
index 81022596a..891a24495 100644
--- a/internal/transport/controller.go
+++ b/internal/transport/controller.go
@@ -37,7 +37,6 @@ import (
"github.com/superseriousbusiness/gotosocial/internal/config"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/federation/federatingdb"
- "github.com/superseriousbusiness/gotosocial/internal/httpclient"
"github.com/superseriousbusiness/gotosocial/internal/state"
)
@@ -54,14 +53,14 @@ type controller struct {
state *state.State
fedDB federatingdb.DB
clock pub.Clock
- client httpclient.SigningClient
+ client pub.HttpClient
trspCache cache.TTLCache[string, *transport]
userAgent string
senders int // no. concurrent batch delivery routines.
}
// NewController returns an implementation of the Controller interface for creating new transports
-func NewController(state *state.State, federatingDB federatingdb.DB, clock pub.Clock, client httpclient.SigningClient) Controller {
+func NewController(state *state.State, federatingDB federatingdb.DB, clock pub.Clock, client pub.HttpClient) Controller {
var (
host = config.GetHost()
proto = config.GetProtocol()