Skip to content

Conversation

@weisd
Copy link
Contributor

@weisd weisd commented Oct 27, 2025

fix: scandir object

Type of Change

  • New Feature
  • Bug Fix
  • Documentation
  • Performance Improvement
  • Test/CI
  • Refactor
  • Other:

Related Issues

#635

Summary of Changes

Checklist

  • I have read and followed the CONTRIBUTING.md guidelines
  • Passed make pre-commit
  • Added/updated necessary tests
  • Documentation updated (if needed)
  • CI/CD passed (if applicable)

Impact

  • Breaking change (compatibility)
  • Requires doc/config/deployment update
  • Other impact:

Additional Notes


Thank you for your contribution! Please ensure your PR follows the community standards (CODE_OF_CONDUCT.md) and sign the CLA if this is your first contribution.

@genedna genedna requested a review from Copilot October 28, 2025 01:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes issues with the scandir object implementation, primarily addressing bug #635. The changes refactor the merge entry channels logic and improve the scan_dir function's parameter handling.

Key changes:

  • Refactored merge_entry_channels to eliminate redundant cloning and simplify the entry comparison logic
  • Modified scan_dir to accept owned parameters instead of mutable references, reducing complexity and improving performance
  • Cleaned up commented-out code and improved error logging

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
crates/ecstore/src/store_list_objects.rs Simplified merge_entry_channels by removing unnecessary Option wrapping and cloning, changed loop iteration pattern
crates/ecstore/src/disk/local.rs Changed scan_dir signature from mutable references to owned parameters, removed filter_prefix handling from recursive calls, improved prefix checking logic
crates/ecstore/src/cache_value/metacache_set.rs Fixed comment text for clarity

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@weisd weisd merged commit 40660e7 into main Oct 28, 2025
14 checks passed
@weisd weisd deleted the feat/scandir branch October 28, 2025 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant