@@ -394,9 +394,7 @@ impl TransactionTask {
394
394
} => {
395
395
if let TransactionIsolationLevel :: RepeatableReadReadOnly = self . isolation_level
396
396
{
397
- tracing:: error!( "cannot set in read only txn" ) ;
398
- let _ =
399
- response. send ( Err ( anyhow ! ( "postgres transaction connection failed" ) ) ) ;
397
+ let _ = response. send ( Err ( anyhow ! ( "cannot set in read only txn" ) ) ) ;
400
398
continue ;
401
399
} ;
402
400
@@ -418,9 +416,7 @@ impl TransactionTask {
418
416
TransactionCommand :: Clear { key, response } => {
419
417
if let TransactionIsolationLevel :: RepeatableReadReadOnly = self . isolation_level
420
418
{
421
- tracing:: error!( "cannot set in read only txn" ) ;
422
- let _ =
423
- response. send ( Err ( anyhow ! ( "postgres transaction connection failed" ) ) ) ;
419
+ let _ = response. send ( Err ( anyhow ! ( "cannot set in read only txn" ) ) ) ;
424
420
continue ;
425
421
} ;
426
422
@@ -443,9 +439,7 @@ impl TransactionTask {
443
439
} => {
444
440
if let TransactionIsolationLevel :: RepeatableReadReadOnly = self . isolation_level
445
441
{
446
- tracing:: error!( "cannot clear range in read only txn" ) ;
447
- let _ =
448
- response. send ( Err ( anyhow ! ( "postgres transaction connection failed" ) ) ) ;
442
+ let _ = response. send ( Err ( anyhow ! ( "cannot clear range in read only txn" ) ) ) ;
449
443
continue ;
450
444
} ;
451
445
@@ -478,9 +472,8 @@ impl TransactionTask {
478
472
} => {
479
473
if let TransactionIsolationLevel :: RepeatableReadReadOnly = self . isolation_level
480
474
{
481
- tracing:: error!( "cannot apply atomic op in read only txn" ) ;
482
475
let _ =
483
- response. send ( Err ( anyhow ! ( "postgres transaction connection failed " ) ) ) ;
476
+ response. send ( Err ( anyhow ! ( "cannot apply atomic op in read only txn " ) ) ) ;
484
477
continue ;
485
478
} ;
486
479
@@ -539,9 +532,9 @@ impl TransactionTask {
539
532
if let TransactionIsolationLevel :: RepeatableReadReadOnly =
540
533
self . isolation_level
541
534
{
542
- tracing :: error! ( "cannot release conflict ranges in read only txn" ) ;
543
- let _ = response
544
- . send ( Err ( anyhow ! ( "postgres transaction connection failed" ) ) ) ;
535
+ let _ = response . send ( Err ( anyhow ! (
536
+ "cannot release conflict ranges in read only txn"
537
+ ) ) ) ;
545
538
continue ;
546
539
} ;
547
540
@@ -567,9 +560,8 @@ impl TransactionTask {
567
560
} => {
568
561
if let TransactionIsolationLevel :: RepeatableReadReadOnly = self . isolation_level
569
562
{
570
- tracing:: error!( "cannot add conflict range in read only txn" ) ;
571
- let _ =
572
- response. send ( Err ( anyhow ! ( "postgres transaction connection failed" ) ) ) ;
563
+ let _ = response
564
+ . send ( Err ( anyhow ! ( "cannot add conflict range in read only txn" ) ) ) ;
573
565
continue ;
574
566
} ;
575
567
0 commit comments