Skip to content

Commit 04704aa

Browse files
Shubham8287Centril
andauthored
Apply suggestions from code review
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com> Signed-off-by: Shubham Mishra <shivam828787@gmail.com>
1 parent 607c45f commit 04704aa

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

crates/core/src/db/relational_db.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ impl RelationalDB {
819819
Txdata,
820820
};
821821

822-
let is_ephemeral_tables = |table_id: &TableId| -> bool {
822+
let is_ephemeral_table = |table_id: &TableId| -> bool {
823823
tx_data
824824
.ephemeral_tables()
825825
.map(|etables| etables.contains(table_id))
@@ -2566,7 +2566,7 @@ mod tests {
25662566
Bytes::from(to_vec(&AlgebraicValue::Array([pv.clone()].into())).expect("bstan serialization failed"))
25672567
};
25682568

2569-
let row_pv = |v: u8| ProductValue::from_iter(vec![AlgebraicValue::U8(v)]);
2569+
let row_pv = |v: u8| product![v];
25702570

25712571
let mut tx = begin_mut_tx(stdb);
25722572
tx.subscribe_view(view_id, ArgId::SENTINEL, sender)?;

crates/datastore/src/locking_tx_datastore/committed_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub struct CommittedState {
8181
/// and its read set will be updated accordingly.
8282
read_sets: ViewReadSets,
8383

84-
/// Tables which do not needs to be made persistent.
84+
/// Tables which do not need to be made persistent.
8585
/// These include:
8686
/// - system tables: `st_view_sub`, `st_view_arg`
8787
/// - Tables which back views.

0 commit comments

Comments
 (0)