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

Commit f08ef64

Browse files
authored
Enforce all replication HTTP clients calls use kwargs (#9144)
1 parent 2b467d0 commit f08ef64

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/9144.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Enforce that replication HTTP clients are called with keyword arguments only.

synapse/replication/http/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def make_client(cls, hs):
177177

178178
@trace(opname="outgoing_replication_request")
179179
@outgoing_gauge.track_inprogress()
180-
async def send_request(instance_name="master", **kwargs):
180+
async def send_request(*, instance_name="master", **kwargs):
181181
if instance_name == local_instance_name:
182182
raise Exception("Trying to send HTTP request to self")
183183
if instance_name == "master":

0 commit comments

Comments
 (0)