Skip to content

Commit

Permalink
Fix get_hosted_table_names in Python client
Browse files Browse the repository at this point in the history
It was returning None.  It now returns a future which resolves to the
list of hosted table names.
  • Loading branch information
tomjakubowski committed Mar 2, 2024
1 parent 720071f commit f4a8af0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/perspective/perspective/client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ def send(self, msg):

def get_hosted_table_names(self):
msg = {"cmd": "get_hosted_table_names"}
return self.post(msg)
future = asyncio.Future()
self.post(msg, future=future)
return future

def post(self, msg, future=None, keep_alive=False):
"""Given a message and an associated `Future` object, store the future
Expand Down

0 comments on commit f4a8af0

Please sign in to comment.