test work
This commit is contained in:
		| @@ -405,12 +405,15 @@ impl JsonRequestProcessor { | ||||
|                 TableDbTransactionResponseOp::Rollback {} | ||||
|             } | ||||
|             TableDbTransactionRequestOp::Store { col, key, value } => { | ||||
|                 table_db_transaction.store(col, &key, &value); | ||||
|                 TableDbTransactionResponseOp::Store {} | ||||
|                 TableDbTransactionResponseOp::Store { | ||||
|                     result: to_json_api_result(table_db_transaction.store(col, &key, &value)), | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|             TableDbTransactionRequestOp::Delete { col, key } => { | ||||
|                 table_db_transaction.delete(col, &key); | ||||
|                 TableDbTransactionResponseOp::Delete {} | ||||
|                 TableDbTransactionResponseOp::Delete { | ||||
|                     result: to_json_api_result(table_db_transaction.delete(col, &key)), | ||||
|                 } | ||||
|             } | ||||
|         }; | ||||
|         TableDbTransactionResponse { | ||||
|   | ||||
| @@ -124,6 +124,12 @@ pub enum TableDbTransactionResponseOp { | ||||
|         result: ApiResult<()>, | ||||
|     }, | ||||
|     Rollback {}, | ||||
|     Store {}, | ||||
|     Delete {}, | ||||
|     Store { | ||||
|         #[serde(flatten)] | ||||
|         result: ApiResult<()>, | ||||
|     }, | ||||
|     Delete { | ||||
|         #[serde(flatten)] | ||||
|         result: ApiResult<()>, | ||||
|     }, | ||||
| } | ||||
|   | ||||
| @@ -4,7 +4,6 @@ use range_set_blaze::*; | ||||
|  | ||||
| #[derive( | ||||
|     Clone, | ||||
|     Debug, | ||||
|     Default, | ||||
|     PartialOrd, | ||||
|     PartialEq, | ||||
| @@ -55,3 +54,15 @@ impl DerefMut for ValueSubkeyRangeSet { | ||||
|         &mut self.data | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl fmt::Debug for ValueSubkeyRangeSet { | ||||
|     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | ||||
|         write!(f, "{:?}", self.data) | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl fmt::Display for ValueSubkeyRangeSet { | ||||
|     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | ||||
|         write!(f, "{}", self.data) | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user