Skip to content

Commit

Permalink
Merge pull request #12 from lsetiawan/fix_async
Browse files Browse the repository at this point in the history
Fix async clash with dask
  • Loading branch information
Joe Hamman authored Mar 3, 2020
2 parents b4eb299 + d7ee08e commit d59221e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xpublish/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def zmetadata_json(self):

return zjson

async def get_key(self, var, chunk):
def get_key(self, var, chunk):
logger.debug("var is %s", var)
logger.debug("chunk is %s", chunk)

Expand Down Expand Up @@ -216,8 +216,8 @@ def to_dict(data: bool = False):
return self._obj.to_dict(data=data)

@self._app.get("/{var}/{chunk}")
async def get_key(var, chunk):
result = await self.get_key(var, chunk)
def get_key(var, chunk):
result = self.get_key(var, chunk)
return result

@self._app.get("/versions")
Expand Down

0 comments on commit d59221e

Please sign in to comment.