diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-04-29 11:34:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 11:34:31 +0100 |
commit | a308e61331f549ae0964f83dff88abc282033ed3 (patch) | |
tree | 7dad59cce409fd1f3e806d0b928b141a4fc7fcd5 /common/basecomponent/base.go | |
parent | a4b9edb28e32b505cf3a67bcba1acacd4a882155 (diff) |
Federation sender API remodel (#988)
* Define an input API for the federationsender
* Wiring for rooomserver input API and federation sender input API
* Whoops, commit common too
* Merge input API into query API
* Rename FederationSenderQueryAPI to FederationSenderInternalAPI
* Fix dendritejs
* Rename Input to Perform
* Fix a couple of inputs -> performs
* Remove needless storage interface, add comments
Diffstat (limited to 'common/basecomponent/base.go')
-rw-r--r-- | common/basecomponent/base.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/basecomponent/base.go b/common/basecomponent/base.go index 5e2d659b..f245dd50 100644 --- a/common/basecomponent/base.go +++ b/common/basecomponent/base.go @@ -149,12 +149,12 @@ func (b *BaseDendrite) CreateHTTPEDUServerAPIs() eduServerAPI.EDUServerInputAPI return e } -// CreateHTTPFederationSenderAPIs returns FederationSenderQueryAPI for hitting +// CreateHTTPFederationSenderAPIs returns FederationSenderInternalAPI for hitting // the federation sender over HTTP -func (b *BaseDendrite) CreateHTTPFederationSenderAPIs() federationSenderAPI.FederationSenderQueryAPI { - f, err := federationSenderAPI.NewFederationSenderQueryAPIHTTP(b.Cfg.FederationSenderURL(), b.httpClient) +func (b *BaseDendrite) CreateHTTPFederationSenderAPIs() federationSenderAPI.FederationSenderInternalAPI { + f, err := federationSenderAPI.NewFederationSenderInternalAPIHTTP(b.Cfg.FederationSenderURL(), b.httpClient) if err != nil { - logrus.WithError(err).Panic("NewFederationSenderQueryAPIHTTP failed", b.httpClient) + logrus.WithError(err).Panic("NewFederationSenderInternalAPIHTTP failed", b.httpClient) } return f } |