Skip to content

Commit

Permalink
refactor set func
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole00 committed Mar 4, 2024
1 parent 947f202 commit 9347960
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions example/ScanVertexEdgeExample.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def scan_person_edge(graph_storage_client):
[("172.28.1.1", 9559), ("172.28.1.2", 9559), ("172.28.1.3", 9559)], 50000
)
graph_storage_client = GraphStorageClient(meta_cache)
graph_storage_client.set_user_passwd("root", "nebula")
prepare_data()
scan_person_vertex(graph_storage_client)
scan_person_edge(graph_storage_client)
Expand Down
2 changes: 1 addition & 1 deletion nebula3/sclient/GraphStorageClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self, meta_cache, storage_addrs=None, time_out=60000):
self._connections = []
self._create_connection()

def set_userPasswd(self, user, passwd):
def set_user_passwd(self, user, passwd):
"""set user and password for scan. only useful for enterprise
:return:
"""
Expand Down

0 comments on commit 9347960

Please sign in to comment.