Skip to content

Commit

Permalink
Snet CLI/SDK | Fixes import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
DhivakharVenkatachalam committed Oct 7, 2021
1 parent 548950c commit c88c40a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion packages/snet_cli/snet/snet_cli/utils/root_certificate.py

This file was deleted.

4 changes: 2 additions & 2 deletions packages/snet_cli/snet/snet_cli/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from grpc_tools.protoc import main as protoc

from snet import snet_cli
from packages.snet_cli.snet.snet_cli.utils.root_certificate import root_certificate
from snet.snet_cli.resources.root_certificate import certificate

RESOURCES_PATH = PurePath(os.path.dirname(snet_cli.__file__)).joinpath("resources")

Expand Down Expand Up @@ -261,7 +261,7 @@ def open_grpc_channel(endpoint):
options = [('grpc.max_send_message_length', _GB),
('grpc.max_receive_message_length', _GB)]
if (endpoint.startswith("https://")):
return grpc.secure_channel(remove_http_https_prefix(endpoint), grpc.ssl_channel_credentials(root_certificates=root_certificate))
return grpc.secure_channel(remove_http_https_prefix(endpoint), grpc.ssl_channel_credentials(root_certificates=certificate))
return grpc.insecure_channel(remove_http_https_prefix(endpoint))


Expand Down

0 comments on commit c88c40a

Please sign in to comment.