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 /clientapi/routing/sendevent.go | |
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 'clientapi/routing/sendevent.go')
-rw-r--r-- | clientapi/routing/sendevent.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clientapi/routing/sendevent.go b/clientapi/routing/sendevent.go index 76e36cd4..e6de187f 100644 --- a/clientapi/routing/sendevent.go +++ b/clientapi/routing/sendevent.go @@ -43,7 +43,7 @@ func SendEvent( req *http.Request, device *authtypes.Device, roomID, eventType string, txnID, stateKey *string, - cfg config.Dendrite, + cfg *config.Dendrite, queryAPI api.RoomserverQueryAPI, producer *producers.RoomserverProducer, txnCache *transactions.Cache, @@ -93,7 +93,7 @@ func generateSendEvent( req *http.Request, device *authtypes.Device, roomID, eventType string, stateKey *string, - cfg config.Dendrite, + cfg *config.Dendrite, queryAPI api.RoomserverQueryAPI, ) (*gomatrixserverlib.Event, *util.JSONResponse) { // parse the incoming http request |