Skip to content

Commit

Permalink
perf: fastentrypoints to solve slow startup in 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed May 30, 2021
1 parent 093de97 commit 8a3130b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion jina/docker/hubio.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def login(self) -> None:
"""Login using Github Device flow to allow push access to Jina Hub Registry."""
import requests

with os.path.join(__resources_path__, 'hubapi.yml') as fp:
with open(os.path.join(__resources_path__, 'hubapi.yml')) as fp:
hubapi_yml = JAML.load(fp)

client_id = hubapi_yml['github']['client_id']
Expand Down
1 change: 0 additions & 1 deletion tests/unit/docker/test_hubio.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from jina.docker.hubio import HubIO
from jina.parsers.hub import (
set_hub_new_parser,
set_hub_pushpull_parser,
set_hub_build_parser,
)
Expand Down

0 comments on commit 8a3130b

Please sign in to comment.