Skip to content

Commit

Permalink
remove grpc:// if server is grpc
Browse files Browse the repository at this point in the history
  • Loading branch information
moarshy committed Dec 5, 2024
1 parent 295b7af commit 6433e24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions naptha_sdk/client/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def __init__(self, node_url: Optional[str] = None, indirect_node_id: Optional[st
self.server_type = 'http'
elif self.node_url.startswith('grpc://'):
self.server_type = 'grpc'
self.node_url = self.node_url.replace('grpc://', '')
else:
raise ValueError("Invalid node URL")

Expand Down

0 comments on commit 6433e24

Please sign in to comment.