Skip to content

Commit 3b2a9c9

Browse files
committed
Make doctests pass.
1 parent 4cf3dde commit 3b2a9c9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@
1010
//! use chromadb::collection::{ChromaCollection, GetResult, GetOptions};
1111
//! use serde_json::json;
1212
//!
13-
//!# fn doc_client_demo() -> anyhow::Result<()> {
13+
//!# async fn doc_client_demo() -> anyhow::Result<()> {
1414
//! // With default ChromaClientOptions
1515
//! // Defaults to http://localhost:8000
16-
//! let client: ChromaClient = ChromaClient::new(Default::default());
16+
//! let client: ChromaClient = ChromaClient::new(Default::default()).await.unwrap();
1717
//!
1818
//! // With custom ChromaClientOptions
1919
//! let auth = ChromaAuthMethod::TokenAuth {
2020
//! token: "<TOKEN>".to_string(),
2121
//! header: ChromaTokenHeader::Authorization
2222
//! };
2323
//! let client: ChromaClient = ChromaClient::new(ChromaClientOptions {
24-
//! url: "<CHROMADB_URL>".into(),
25-
//! database: Some("<DATABASE>".into()),
24+
//! url: Some("<CHROMADB_URL>".to_string()),
25+
//! database: "<DATABASE>".to_string(),
2626
//! auth
27-
//! });
27+
//! }).await.unwrap();
2828
//!
2929
//! # Ok(())
3030
//! # }

0 commit comments

Comments
 (0)