Skip to content

Commit

Permalink
chore(operator): apply max_batch_limit for async operator (#1641)
Browse files Browse the repository at this point in the history
Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
Co-authored-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
ClSlaid and Xuanwo committed Mar 16, 2023
1 parent 202ec70 commit dfb8d1c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/types/operator/operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,8 @@ impl Operator {
}

pub(crate) fn from_inner(accessor: FusedAccessor) -> Self {
Self {
accessor,
limit: 1000,
}
let limit = accessor.info().max_batch_operations().unwrap_or(1000);
Self { accessor, limit }
}

pub(super) fn into_inner(self) -> FusedAccessor {
Expand Down

0 comments on commit dfb8d1c

Please sign in to comment.