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:
3333``` rust
3434use tikv_client :: RawClient ;
3535
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 ? ;
3737client . put (" key" . to_owned (), " value" . to_owned ()). await ? ;
3838let value = client . get (" key" . to_owned ()). await ? ;
3939```
@@ -43,7 +43,7 @@ Transactional mode:
4343``` rust
4444use tikv_client :: TransactionClient ;
4545
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 ? ;
4747let mut txn = txn_client . begin_optimistic (). await ? ;
4848txn . put (" key" . to_owned (), " value" . to_owned ()). await ? ;
4949let value = txn . get (" key" . to_owned ()). await ? ;
You can’t perform that action at this time.
0 commit comments