memory (disco): fix incorrect use of await
This commit is contained in:
parent
7696afb3d8
commit
ebe072dbd4
1 changed files with 3 additions and 3 deletions
|
|
@ -371,9 +371,9 @@ class Discovery:
|
||||||
if jid_ == client.server_jid and not node:
|
if jid_ == client.server_jid and not node:
|
||||||
# we cache items only for our own server and if node is not set
|
# we cache items only for our own server and if node is not set
|
||||||
try:
|
try:
|
||||||
items = await self.host.memory.entity_data_get(
|
items = G.host.memory.entity_data_get(client, jid_, ["DISCO_ITEMS"])[
|
||||||
client, jid_, ["DISCO_ITEMS"]
|
"DISCO_ITEMS"
|
||||||
)["DISCO_ITEMS"]
|
]
|
||||||
log.debug("[%s] disco items are in cache" % jid_.full())
|
log.debug("[%s] disco items are in cache" % jid_.full())
|
||||||
if not use_cache:
|
if not use_cache:
|
||||||
# we ignore cache, so we pretend we haven't found it
|
# we ignore cache, so we pretend we haven't found it
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue