Skip to content

Commit

Permalink
Merge pull request #8 from bioimage-io/fix-hypha-rpc
Browse files Browse the repository at this point in the history
Upgrade to hypha-rpc 0.20.31 and fix overwrite
  • Loading branch information
oeway authored Aug 26, 2024
2 parents da57a4f + 9623183 commit 76390b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bioimageio_colab/hypha_data_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async def setup(self, server, service_id="data-store", visibility="public"):
"require_context": False
},
"get": self.http_get,
}, overwrite=True)
})

def get_url(self, obj_id: str):
assert self._svc, "Service not initialized, call `setup()`"
Expand Down
3 changes: 1 addition & 2 deletions bioimageio_colab/register_sam_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ async def register_service(args: dict) -> None:
# remove the user id from the storage
# returns True if the user was removed successfully
"remove_user_id": remove_user_id, # TODO: add a timeout to remove a user after a certain time
},
overwrite=True,
}, {"overwrite": True}
)
sid = service_info["id"]
assert sid == f"{args.workspace_name}/{args.client_id}:{args.service_id}"
Expand Down

0 comments on commit 76390b2

Please sign in to comment.