mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-26 19:47:05 +03:00
Enforce all replication HTTP clients calls use kwargs (#9144)
This commit is contained in:
parent
2b467d0b61
commit
f08ef64926
2 changed files with 2 additions and 1 deletions
1
changelog.d/9144.misc
Normal file
1
changelog.d/9144.misc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Enforce that replication HTTP clients are called with keyword arguments only.
|
|
@ -177,7 +177,7 @@ class ReplicationEndpoint(metaclass=abc.ABCMeta):
|
||||||
|
|
||||||
@trace(opname="outgoing_replication_request")
|
@trace(opname="outgoing_replication_request")
|
||||||
@outgoing_gauge.track_inprogress()
|
@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:
|
if instance_name == local_instance_name:
|
||||||
raise Exception("Trying to send HTTP request to self")
|
raise Exception("Trying to send HTTP request to self")
|
||||||
if instance_name == "master":
|
if instance_name == "master":
|
||||||
|
|
Loading…
Reference in a new issue