summary refs log tree commit diff
path: root/synapse/http
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2017-05-05 10:52:46 +0100
committerKegan Dougal <kegan@matrix.org>2017-05-05 10:52:46 +0100
commitc2ddd773bc23dfc9fa2f20d39547bf6a4bd7d0f1 (patch)
tree627470b6f03c98131b885144664726f3db871dc1 /synapse/http
parentRewrite SimpleHttpClient.request to include timeouts (diff)
downloadsynapse-c2ddd773bc23dfc9fa2f20d39547bf6a4bd7d0f1.tar.xz
Include the clock
Diffstat (limited to 'synapse/http')
-rw-r--r--synapse/http/client.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/http/client.py b/synapse/http/client.py
index 68bd06abd9..58f12cf8ee 100644
--- a/synapse/http/client.py
+++ b/synapse/http/client.py
@@ -72,6 +72,7 @@ class SimpleHttpClient(object):
             contextFactory=hs.get_http_client_context_factory()
         )
         self.user_agent = hs.version_string
+        self.clock = hs.get_clock()
         if hs.config.user_agent_suffix:
             self.user_agent = "%s %s" % (self.user_agent, hs.config.user_agent_suffix,)