Skip to content

Commit

Permalink
Corrected serverpempath,formatted code
Browse files Browse the repository at this point in the history
Signed-off-by: Nischay Yadav <[email protected]>
  • Loading branch information
nish112022 committed May 7, 2024
1 parent e441543 commit d4b1aee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/example_tls1.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def main():
print(f"\nCreate connection...")
milvus_client = MilvusClient(uri=_URI,
secure=True,
server_pem_path="/root/milvus_2.4/milvus/configs/cert/server.pem",
server_pem_path="cert/server.pem",
server_name='localhost')
print(f"\nList connection:")
print(milvus_client._get_connection())
Expand Down Expand Up @@ -69,7 +69,7 @@ def main():
entity = {
"id_field": i+1, # Assuming id_field is the _COLLECTION_NAME of the field corresponding to the ID
"float_vector_field": [random.random() for _ in range(_DIM)]
}
}
data_dict.append(entity)
insert_result = milvus_client.insert(collection_name=_COLLECTION_NAME,data=data_dict)

Expand Down

0 comments on commit d4b1aee

Please sign in to comment.