Mercurial > libervia-backend
changeset 3750:193b56ef58e0
core (disco): use new `client.server_jid` property in `getItems`
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 13 May 2022 17:55:51 +0200 |
parents | 9581098b64f0 |
children | 073f386a191a |
files | sat/memory/disco.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/sat/memory/disco.py Fri May 13 17:52:43 2022 +0200 +++ b/sat/memory/disco.py Fri May 13 17:55:51 2022 +0200 @@ -258,11 +258,10 @@ @param use_cache(bool): if True, use cached data if available @return: a Deferred which fire disco.DiscoItems """ - server_jid = jid.JID(client.jid.host) if jid_ is None: - jid_ = server_jid + jid_ = client.server_jid - if jid_ == 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 try: items = self.host.memory.getEntityData(