Skip to content

Commit e6937ef

Browse files
Shubham8287Centril
andcommitted
Apply suggestions from code review
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com> Signed-off-by: Shubham Mishra <shivam828787@gmail.com>
1 parent 5c6665a commit e6937ef

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))
@@ -2518,7 +2518,7 @@ mod tests {
25182518
Bytes::from(to_vec(&AlgebraicValue::Array([pv.clone()].into())).expect("bstan serialization failed"))
25192519
};
25202520

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

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