plugin pubsub cache: use asDeferred with match_cb
This commit is contained in:
parent
1d6cead380
commit
6fa6f7a1f8
1 changed files with 1 additions and 2 deletions
|
|
@ -389,7 +389,6 @@ class PubsubCache:
|
|||
analyse["conf"] = conf
|
||||
|
||||
for analyser in self.analysers.values():
|
||||
match_cb = analyser.get("match_cb")
|
||||
try:
|
||||
an_node = analyser["node"]
|
||||
except KeyError:
|
||||
|
|
@ -429,7 +428,7 @@ class PubsubCache:
|
|||
except KeyError:
|
||||
pass
|
||||
else:
|
||||
await match_cb(client, analyse)
|
||||
await utils.asDeferred(match_cb, client, analyse)
|
||||
return analyse
|
||||
|
||||
def _getItemsFromCache(
|
||||
|
|
|
|||
Loading…
Reference in a new issue