core (memory/disco): fix hard encoded value in findServiceEntity

This commit is contained in:
Goffi 2022-05-13 17:56:40 +02:00
commit 4a201bc0f2

View file

@ -303,7 +303,7 @@ class Discovery(object):
args are the same as for [findServiceEntities]
@return (jid.JID, None): found entity
"""
d = self.host.findServiceEntities(client, "pubsub", "service")
d = self.host.findServiceEntities(client, category, type_)
d.addCallback(lambda entities: entities.pop() if entities else None)
return d