aboutsummaryrefslogtreecommitdiff
path: root/federationapi/routing/send_test.go
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-06-10 12:17:54 +0100
committerGitHub <noreply@github.com>2020-06-10 12:17:54 +0100
commitb7187a9a354530c1846c2a97be701ea484f91c2c (patch)
tree6d14903a444fa8bca964247dbe85ae8d9709d4c8 /federationapi/routing/send_test.go
parentd9d6f4568ce891ae0ae9d2a3449974d3777bd21d (diff)
Remove clientapi producers which aren't actually producers (#1111)
* Remove clientapi producers which aren't actually producers They are actually just convenience wrappers around the internal APIs for roomserver/eduserver. Move their logic to their respective `api` packages and call them directly. * Remove TODO * unbreak ygg
Diffstat (limited to 'federationapi/routing/send_test.go')
-rw-r--r--federationapi/routing/send_test.go16
1 files changed, 7 insertions, 9 deletions
diff --git a/federationapi/routing/send_test.go b/federationapi/routing/send_test.go
index 3e28a347..b81f1c00 100644
--- a/federationapi/routing/send_test.go
+++ b/federationapi/routing/send_test.go
@@ -8,7 +8,6 @@ import (
"testing"
"time"
- "github.com/matrix-org/dendrite/clientapi/producers"
eduAPI "github.com/matrix-org/dendrite/eduserver/api"
fsAPI "github.com/matrix-org/dendrite/federationsender/api"
"github.com/matrix-org/dendrite/roomserver/api"
@@ -339,14 +338,13 @@ func (c *txnFedClient) LookupMissingEvents(ctx context.Context, s gomatrixserver
func mustCreateTransaction(rsAPI api.RoomserverInternalAPI, fedClient txnFederationClient, pdus []json.RawMessage) *txnReq {
t := &txnReq{
- context: context.Background(),
- rsAPI: rsAPI,
- producer: producers.NewRoomserverProducer(rsAPI),
- eduProducer: producers.NewEDUServerProducer(&testEDUProducer{}),
- keys: &testNopJSONVerifier{},
- federation: fedClient,
- haveEvents: make(map[string]*gomatrixserverlib.HeaderedEvent),
- newEvents: make(map[string]bool),
+ context: context.Background(),
+ rsAPI: rsAPI,
+ eduAPI: &testEDUProducer{},
+ keys: &testNopJSONVerifier{},
+ federation: fedClient,
+ haveEvents: make(map[string]*gomatrixserverlib.HeaderedEvent),
+ newEvents: make(map[string]bool),
}
t.PDUs = pdus
t.Origin = testOrigin