Skip to content

Commit 28e8b98

Browse files
Shubham8287Centril
andcommitted
Apply suggestions from code review
Co-authored-by: Mazdak Farrokhzad <[email protected]> Signed-off-by: Shubham Mishra <[email protected]>
1 parent bc5ee59 commit 28e8b98

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/core/src/db/relational_db.rs

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

824-
let is_ephemeral_tables = |table_id: &TableId| -> bool {
824+
let is_ephemeral_table = |table_id: &TableId| -> bool {
825825
tx_data
826826
.ephemeral_tables()
827827
.map(|etables| etables.contains(table_id))
@@ -2531,7 +2531,7 @@ mod tests {
25312531
Bytes::from(to_vec(&AlgebraicValue::Array([pv.clone()].into())).expect("bstan serialization failed"))
25322532
};
25332533

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

25362536
let mut tx = begin_mut_tx(stdb);
25372537
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)