diff options
author | richvdh <richvdh@users.noreply.github.com> | 2022-02-23 11:04:36 +0000 |
---|---|---|
committer | richvdh <richvdh@users.noreply.github.com> | 2022-02-23 11:04:36 +0000 |
commit | fd2ce4b9cb656685ffe805190508801949984e79 (patch) | |
tree | d9082861cab01d2cd696f618526c0d869389f2ae /develop/manhole.html | |
parent | deploy: 7bcc28f82fe160dc8dca1d70f8dc3667c94fb738 (diff) | |
download | synapse-fd2ce4b9cb656685ffe805190508801949984e79.tar.xz |
deploy: e24ff8ebe3d4119d377355402245947f7de61c00
Diffstat (limited to 'develop/manhole.html')
-rw-r--r-- | develop/manhole.html | 2 |
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">>>> from twisted.internet import defer ->>> defer.ensureDeferred(hs.get_datastore().get_event('$1416420717069yeQaw:matrix.org')) +>>> defer.ensureDeferred(hs.get_datastores().main.get_event('$1416420717069yeQaw:matrix.org')) <Deferred at 0x7ff253fc6998 current result: <FrozenEvent event_id='$1416420717069yeQaw:matrix.org', type='m.room.create', state_key=''>> </code></pre> |