Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Enforce all replication HTTP clients calls use kwargs (#9144)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston authored Jan 18, 2021
1 parent 2b467d0 commit f08ef64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/9144.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Enforce that replication HTTP clients are called with keyword arguments only.
2 changes: 1 addition & 1 deletion synapse/replication/http/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def make_client(cls, hs):

@trace(opname="outgoing_replication_request")
@outgoing_gauge.track_inprogress()
async def send_request(instance_name="master", **kwargs):
async def send_request(*, instance_name="master", **kwargs):
if instance_name == local_instance_name:
raise Exception("Trying to send HTTP request to self")
if instance_name == "master":
Expand Down

0 comments on commit f08ef64

Please sign in to comment.