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

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Sep 25, 2020
1 parent 4975969 commit 4a48c45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion synapse/replication/http/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ def make_client(cls, hs):

instance_map = hs.config.worker.instance_map

outgoing_gauge = _pending_outgoing_requests.labels(cls.NAME)

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

0 comments on commit 4a48c45

Please sign in to comment.