Commit d7e45d06 by Oleksandr Barabash

consistency_level added to CosmosClient

parent 183de997
......@@ -51,7 +51,10 @@ class CosmosClient:
def __init__(self, host: str, client_id: str):
self.executor = futures.ThreadPoolExecutor()
mgmt_credentials = ManagedIdentityCredential(client_id=client_id)
self.client = cosmos_client.CosmosClient(host, mgmt_credentials)
self.client = cosmos_client.CosmosClient(
host, mgmt_credentials,
consistency_level=documents.ConsistencyLevel.Strong
)
# self.client = cosmos_client.CosmosClient(host,
# dict(masterKey=master_key))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment