@@ -394,9 +394,7 @@ impl TransactionTask {
394394 } => {
395395 if let TransactionIsolationLevel :: RepeatableReadReadOnly = self . isolation_level
396396 {
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" ) ) ) ;
400398 continue ;
401399 } ;
402400
@@ -418,9 +416,7 @@ impl TransactionTask {
418416 TransactionCommand :: Clear { key, response } => {
419417 if let TransactionIsolationLevel :: RepeatableReadReadOnly = self . isolation_level
420418 {
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" ) ) ) ;
424420 continue ;
425421 } ;
426422
@@ -443,9 +439,7 @@ impl TransactionTask {
443439 } => {
444440 if let TransactionIsolationLevel :: RepeatableReadReadOnly = self . isolation_level
445441 {
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" ) ) ) ;
449443 continue ;
450444 } ;
451445
@@ -478,9 +472,8 @@ impl TransactionTask {
478472 } => {
479473 if let TransactionIsolationLevel :: RepeatableReadReadOnly = self . isolation_level
480474 {
481- tracing:: error!( "cannot apply atomic op in read only txn" ) ;
482475 let _ =
483- response. send ( Err ( anyhow ! ( "postgres transaction connection failed " ) ) ) ;
476+ response. send ( Err ( anyhow ! ( "cannot apply atomic op in read only txn " ) ) ) ;
484477 continue ;
485478 } ;
486479
@@ -539,9 +532,9 @@ impl TransactionTask {
539532 if let TransactionIsolationLevel :: RepeatableReadReadOnly =
540533 self . isolation_level
541534 {
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+ ) ) ) ;
545538 continue ;
546539 } ;
547540
@@ -567,9 +560,8 @@ impl TransactionTask {
567560 } => {
568561 if let TransactionIsolationLevel :: RepeatableReadReadOnly = self . isolation_level
569562 {
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" ) ) ) ;
573565 continue ;
574566 } ;
575567
0 commit comments