This commit is contained in:
Pat Hickey
2021-10-20 16:32:39 -07:00
parent 18a355e092
commit 147c8f8ed7
4 changed files with 14 additions and 24 deletions

View File

@@ -168,7 +168,7 @@ impl Table {
}
fn limit_new(plan: &TablePlan, store: &mut dyn Store) -> Result<()> {
if !store.limiter_table_growing(0, plan.table.minimum, plan.table.maximum) {
if !store.table_growing(0, plan.table.minimum, plan.table.maximum) {
bail!(
"table minimum size of {} elements exceeds table limits",
plan.table.minimum
@@ -292,7 +292,7 @@ impl Table {
let old_size = self.size();
let new_size = old_size.checked_add(delta)?;
if !store.limiter_table_growing(old_size, new_size, self.maximum()) {
if !store.table_growing(old_size, new_size, self.maximum()) {
return None;
}