Skip to content

Commit 8d15041

Browse files
authored
fix azure_data_cosmos build with key_auth feature (#1802)
1 parent 09c749a commit 8d15041

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

sdk/cosmos/azure_data_cosmos/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ tokio.workspace = true
2828
serde_json.workspace = true
2929
azure_identity.workspace = true
3030
clap.workspace = true
31+
time.workspace = true
3132

3233
[lints]
3334
workspace = true

sdk/cosmos/azure_data_cosmos/src/clients/cosmos_client.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ impl CosmosClient {
7474
/// # Examples
7575
///
7676
/// ```rust,no_run
77-
/// let client = CosmosClient::with_shared_key("https://myaccount.documents.azure.com/", "my_key", None)?;
77+
/// use azure_data_cosmos::CosmosClient;
78+
///
79+
/// let client = CosmosClient::with_key("https://myaccount.documents.azure.com/", "my_key", None).unwrap();
7880
/// ```
7981
#[cfg(feature = "key_auth")]
8082
pub fn with_key(

0 commit comments

Comments
 (0)