diff options
author | Behouba Manassé <behouba@gmail.com> | 2020-02-11 14:18:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 11:18:12 +0000 |
commit | 9937c05beae7d76e351eae35ad6f441b1c177303 (patch) | |
tree | c8558c2cc386352bcd6bacd810465a18f0e42599 /appservice | |
parent | b72d7eb0cfdb6cead864c6e7cc0ccec77efa5805 (diff) |
Pass cfg by reference around the codebase (#819)
* Pass cfg by reference around the codebase
* Merge branch 'master' into pass-cfg-by-ref
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
Diffstat (limited to 'appservice')
-rw-r--r-- | appservice/appservice.go | 2 | ||||
-rw-r--r-- | appservice/routing/routing.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/appservice/appservice.go b/appservice/appservice.go index 8703959f..f2cbcce2 100644 --- a/appservice/appservice.go +++ b/appservice/appservice.go @@ -100,7 +100,7 @@ func SetupAppServiceAPIComponent( // Set up HTTP Endpoints routing.Setup( - base.APIMux, *base.Cfg, roomserverQueryAPI, roomserverAliasAPI, + base.APIMux, base.Cfg, roomserverQueryAPI, roomserverAliasAPI, accountsDB, federation, transactionsCache, ) diff --git a/appservice/routing/routing.go b/appservice/routing/routing.go index 0e4bd6ba..8a24caad 100644 --- a/appservice/routing/routing.go +++ b/appservice/routing/routing.go @@ -36,7 +36,7 @@ const pathPrefixApp = "/_matrix/app/v1" // applied: // nolint: gocyclo func Setup( - apiMux *mux.Router, cfg config.Dendrite, // nolint: unparam + apiMux *mux.Router, cfg *config.Dendrite, // nolint: unparam queryAPI api.RoomserverQueryAPI, aliasAPI api.RoomserverAliasAPI, // nolint: unparam accountDB *accounts.Database, // nolint: unparam federation *gomatrixserverlib.FederationClient, // nolint: unparam |