message: chore: limit should be greater than 0
diff: @@ -284,6 +284,11 @@ impl IndexerHandle {
  order,
  after_cursor,
  )?;
  + let limit = limit.value() as usize;
  + if limit == 0 {
  + return Err(Error::invalid_params("limit should be greater than 0"));
  + }
  +
  let filter_script_type = match search_key.script_type {
  IndexerScriptType::Lock => IndexerScriptType::Type,
  IndexerScriptType::Type => IndexerScriptType::Lock,
  @@ -395,7 +400,7 @@ impl IndexerHandle {
  tx_index: tx_index.into(),
  })
  })
  - .take(limit.value() as usize)
  + .take(limit)
  .collect::<Vec<_>>();
  Ok(IndexerPagination::new(cells, JsonBytes::from_vec(last_key)))
  @@ -417,6 +422,9 @@ impl IndexerHandle {
  after_cursor,
  )?;
  let limit = limit.value() as usize;
  + if limit == 0 {
  + return Err(Error::invalid_params("limit should be greater than 0"));
  + }
  let (filter_script, filter_block_range) = if let Some(filter) = search_key.filter.as_ref() {
  if filter.script_len_range.is_some() {
  