Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mwylde committed Jan 13, 2025
1 parent 539383e commit 0aaf1a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/arroyo-worker/src/arrow/lookup_join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ impl OperatorConstructor for LookupJoinConstructor {
.unwrap_or_else(|| panic!("No connector with name '{}'", op.connector))
.make_lookup(operator_config.clone(), lookup_schema.clone())?;

let max_capacity_bytes = config.max_capacity_bytes.unwrap_or_else(|| 8 * 1024 * 1024);
let max_capacity_bytes = config.max_capacity_bytes.unwrap_or(8 * 1024 * 1024);
let cache = (max_capacity_bytes > 0).then(|| {
let mut c = Cache::builder()
.weigher(|k: &OwnedRow, v: &OwnedRow| (k.as_ref().len() + v.as_ref().len()) as u32)
Expand Down

0 comments on commit 0aaf1a7

Please sign in to comment.