File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ async fn txn_optimistic_heartbeat() -> Result<()> {
3434
3535 let mut txn_without_heartbeat = client
3636 . begin_with_options (
37- TransactionOptions :: new_optimistic ( ) . heartbeat_option ( HeartbeatOption :: NoHeartbeat ) ,
37+ TransactionOptions :: new_optimistic ( )
38+ . heartbeat_option ( HeartbeatOption :: NoHeartbeat )
39+ . drop_check ( tikv_client:: CheckLevel :: Warn ) ,
3840 )
3941 . await ?;
4042 txn_without_heartbeat
@@ -58,7 +60,8 @@ async fn txn_optimistic_heartbeat() -> Result<()> {
5860 . begin_with_options (
5961 TransactionOptions :: new_optimistic ( )
6062 . no_resolve_locks ( )
61- . heartbeat_option ( HeartbeatOption :: NoHeartbeat ) ,
63+ . heartbeat_option ( HeartbeatOption :: NoHeartbeat )
64+ . drop_check ( tikv_client:: CheckLevel :: Warn ) ,
6265 )
6366 . await ?;
6467 t3. put ( key1. clone ( ) , "gee" ) . await ?;
You can’t perform that action at this time.
0 commit comments