core (memory/disco): fix hard encoded value in findServiceEntity
This commit is contained in:
parent
608944d9d9
commit
4a201bc0f2
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue