Skip to content

Comments

refactor: split concurrent-limit layer as a crate#7073

Merged
PsiACE merged 2 commits intomainfrom
split-concurrent-limit
Dec 20, 2025
Merged

refactor: split concurrent-limit layer as a crate#7073
PsiACE merged 2 commits intomainfrom
split-concurrent-limit

Conversation

@PsiACE
Copy link
Member

@PsiACE PsiACE commented Dec 19, 2025

Which issue does this PR close?

Closes #6934 .

Rationale for this change

Part of #6829 .

What changes are included in this PR?

Extract ConcurrentLimitLayer into its own crate to align with the repository’s split-layer architecture.

Are there any user-facing changes?

No public API changes.

AI Usage Statement

codex, gpt-5.2-codex (high)

Copilot AI review requested due to automatic review settings December 19, 2025 19:37
@PsiACE PsiACE requested a review from Xuanwo as a code owner December 19, 2025 19:37
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor" labels Dec 19, 2025
Copy link

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 refactors the concurrent-limit layer by extracting it into its own crate (opendal-layer-concurrent-limit) as part of the ongoing effort to split layers in the repository. This follows the same pattern used by other layers like chaos, capability-check, and async-backtrace.

Key changes:

  • Created a new standalone crate for the concurrent-limit layer with its own Cargo.toml
  • Updated import paths from crate::* to opendal_core::* to reference the core crate externally
  • Updated documentation examples to use the new crate name (opendal_layer_concurrent_limit::ConcurrentLimitLayer)
  • Added the new crate to default features and integrated it into the main opendal crate
  • Removed the old module from core/core/src/layers/mod.rs

Reviewed changes

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

Show a summary per file
File Description
core/src/lib.rs Added re-export for the new opendal-layer-concurrent-limit crate under the layers module
core/layers/concurrent-limit/src/lib.rs Updated imports from crate-relative to opendal_core and updated documentation examples to reference the new crate name
core/layers/concurrent-limit/Cargo.toml New Cargo.toml configuration for the standalone concurrent-limit layer crate with proper dependencies
core/core/src/layers/mod.rs Removed the old concurrent_limit module that was previously part of the core crate
core/Cargo.toml Added concurrent-limit layer to features, default features, and dependencies in alphabetical order
core/Cargo.lock Updated lock file to reflect the new opendal-layer-concurrent-limit dependency and its transitive dependencies

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

Copy link
Member

@koushiro koushiro left a comment

Choose a reason for hiding this comment

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

LGTM, but it seems there's a problem with the prefix list operation of gdrive service in CI; perhaps we need to merge the latest main branch to include the relevant latest fixes.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 20, 2025
@PsiACE PsiACE merged commit f9ad782 into main Dec 20, 2025
1017 of 1058 checks passed
@PsiACE PsiACE deleted the split-concurrent-limit branch December 20, 2025 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor" size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[core split] Layer: concurrent_limit

2 participants