summary refs log tree commit diff
path: root/develop/manhole.html
diff options
context:
space:
mode:
authorrichvdh <richvdh@users.noreply.github.com>2022-02-23 11:04:36 +0000
committerrichvdh <richvdh@users.noreply.github.com>2022-02-23 11:04:36 +0000
commitfd2ce4b9cb656685ffe805190508801949984e79 (patch)
treed9082861cab01d2cd696f618526c0d869389f2ae /develop/manhole.html
parentdeploy: 7bcc28f82fe160dc8dca1d70f8dc3667c94fb738 (diff)
downloadsynapse-fd2ce4b9cb656685ffe805190508801949984e79.tar.xz
deploy: e24ff8ebe3d4119d377355402245947f7de61c00
Diffstat (limited to 'develop/manhole.html')
-rw-r--r--develop/manhole.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/develop/manhole.html b/develop/manhole.html
index 26dfff8b5a..1f1c273ee9 100644
--- a/develop/manhole.html
+++ b/develop/manhole.html
@@ -246,7 +246,7 @@ parts of the process.</p>
 <p>Note that, prior to Synapse 1.41, any call which returns a coroutine will need to be wrapped in <code>ensureDeferred</code>.</p>
 <p>As a simple example, retrieving an event from the database:</p>
 <pre><code class="language-pycon">&gt;&gt;&gt; from twisted.internet import defer
-&gt;&gt;&gt; defer.ensureDeferred(hs.get_datastore().get_event('$1416420717069yeQaw:matrix.org'))
+&gt;&gt;&gt; defer.ensureDeferred(hs.get_datastores().main.get_event('$1416420717069yeQaw:matrix.org'))
 &lt;Deferred at 0x7ff253fc6998 current result: &lt;FrozenEvent event_id='$1416420717069yeQaw:matrix.org', type='m.room.create', state_key=''&gt;&gt;
 </code></pre>