From 70b4f02321891d452ecaa8a4b0b0e24c436b0fc4 Mon Sep 17 00:00:00 2001 From: Benjamin Kane <92759008+bkane-msft@users.noreply.github.com> Date: Thu, 28 Aug 2025 15:27:05 -0700 Subject: [PATCH] Update client initialization in README Removed unnecessary 'None' argument in client initialization that caused a compilation error Signed-off-by: Benjamin Kane <92759008+bkane-msft@users.noreply.github.com> --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f69eef2d..3841cf63 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Raw mode: ```rust use tikv_client::RawClient; -let client = RawClient::new(vec!["127.0.0.1:2379"], None).await?; +let client = RawClient::new(vec!["127.0.0.1:2379"]).await?; client.put("key".to_owned(), "value".to_owned()).await?; let value = client.get("key".to_owned()).await?; ``` @@ -43,7 +43,7 @@ Transactional mode: ```rust use tikv_client::TransactionClient; -let txn_client = TransactionClient::new(vec!["127.0.0.1:2379"], None).await?; +let txn_client = TransactionClient::new(vec!["127.0.0.1:2379"]).await?; let mut txn = txn_client.begin_optimistic().await?; txn.put("key".to_owned(), "value".to_owned()).await?; let value = txn.get("key".to_owned()).await?;