We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76959e7 commit 691df4dCopy full SHA for 691df4d
1 file changed
README.md
@@ -33,7 +33,7 @@ Raw mode:
33
```rust
34
use tikv_client::RawClient;
35
36
-let client = RawClient::new(vec!["127.0.0.1:2379"], None).await?;
+let client = RawClient::new(vec!["127.0.0.1:2379"]).await?;
37
client.put("key".to_owned(), "value".to_owned()).await?;
38
let value = client.get("key".to_owned()).await?;
39
```
@@ -43,7 +43,7 @@ Transactional mode:
43
44
use tikv_client::TransactionClient;
45
46
-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?;
47
let mut txn = txn_client.begin_optimistic().await?;
48
txn.put("key".to_owned(), "value".to_owned()).await?;
49
let value = txn.get("key".to_owned()).await?;
0 commit comments