remove type switch in Create() and instead move to FederatedCallbacks()

This commit is contained in:
kim 2025-01-27 14:00:58 +00:00
commit 3be7f3866a
13 changed files with 581 additions and 432 deletions

View file

@ -404,7 +404,8 @@ func (f *Federator) callForPubKey(
pubKeyID *url.URL,
) ([]byte, gtserror.WithCode) {
// Use a transport to dereference the remote.
trans, err := f.transportController.NewTransportForUsername(
trans, err := f.transport.NewTransportForUsername(
// We're on a hot path: don't retry if req fails.
gtscontext.SetFastFail(ctx),
requestedUsername,