diff options
author | Kegsay <kegan@matrix.org> | 2020-03-30 16:40:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-30 16:40:28 +0100 |
commit | 8fbe9f40782bd56561c75ac74916900c11db3654 (patch) | |
tree | c5600864699e5935dfb0df1b884920e7f296906e /cmd/dendrite-federation-api-server | |
parent | 11a8059bba9dbdc855f10e3b380c4a2f245635a2 (diff) |
Implement typing over federation (#949)
Also fix a pet peeve of mine: not putting units on things!!!
Manually tested on p2p and works well, with some fudge factor delay.
Diffstat (limited to 'cmd/dendrite-federation-api-server')
-rw-r--r-- | cmd/dendrite-federation-api-server/main.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/dendrite-federation-api-server/main.go b/cmd/dendrite-federation-api-server/main.go index 367f5dc0..d18926a6 100644 --- a/cmd/dendrite-federation-api-server/main.go +++ b/cmd/dendrite-federation-api-server/main.go @@ -15,8 +15,11 @@ package main import ( + "github.com/matrix-org/dendrite/clientapi/producers" "github.com/matrix-org/dendrite/common/basecomponent" "github.com/matrix-org/dendrite/common/keydb" + "github.com/matrix-org/dendrite/eduserver" + "github.com/matrix-org/dendrite/eduserver/cache" "github.com/matrix-org/dendrite/federationapi" ) @@ -34,10 +37,12 @@ func main() { alias, input, query := base.CreateHTTPRoomserverAPIs() asQuery := base.CreateHTTPAppServiceAPIs() + eduInputAPI := eduserver.SetupEDUServerComponent(base, cache.New()) + eduProducer := producers.NewEDUServerProducer(eduInputAPI) federationapi.SetupFederationAPIComponent( base, accountDB, deviceDB, federation, &keyRing, - alias, input, query, asQuery, federationSender, + alias, input, query, asQuery, federationSender, eduProducer, ) base.SetupAndServeHTTP(string(base.Cfg.Bind.FederationAPI), string(base.Cfg.Listen.FederationAPI)) |