File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ Raw mode:
33
33
``` rust
34
34
use tikv_client :: RawClient ;
35
35
36
- let client = RawClient :: new (vec! [" 127.0.0.1:2379" ], None ). await ? ;
36
+ let client = RawClient :: new (vec! [" 127.0.0.1:2379" ]). await ? ;
37
37
client . put (" key" . to_owned (), " value" . to_owned ()). await ? ;
38
38
let value = client . get (" key" . to_owned ()). await ? ;
39
39
```
@@ -43,7 +43,7 @@ Transactional mode:
43
43
``` rust
44
44
use tikv_client :: TransactionClient ;
45
45
46
- let txn_client = TransactionClient :: new (vec! [" 127.0.0.1:2379" ], None ). await ? ;
46
+ let txn_client = TransactionClient :: new (vec! [" 127.0.0.1:2379" ]). await ? ;
47
47
let mut txn = txn_client . begin_optimistic (). await ? ;
48
48
txn . put (" key" . to_owned (), " value" . to_owned ()). await ? ;
49
49
let value = txn . get (" key" . to_owned ()). await ? ;
You can’t perform that action at this time.
0 commit comments