Skip to content

[WIP] refactor: use trait to split tokio and madsim-tokio#1220

Open
MrCroxx wants to merge 2 commits intomainfrom
xx/rt-trait
Open

[WIP] refactor: use trait to split tokio and madsim-tokio#1220
MrCroxx wants to merge 2 commits intomainfrom
xx/rt-trait

Conversation

@MrCroxx
Copy link
Member

@MrCroxx MrCroxx commented Dec 12, 2025

What's changed and what's your intention?

Please explain IN DETAIL what the changes are in this PR and why they are needed. :D

WIP...

TODO: Fulfill PR message.

Checklist

  • I have written the necessary rustdoc comments
  • I have added the necessary unit tests and integration tests
  • I have passed cargo x (or cargo x --fast instead if the old tests are not modified) in my local environment.

Related issues or PRs (optional)

Signed-off-by: MrCroxx <mrcroxx@outlook.com>
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
@MrCroxx
Copy link
Member Author

MrCroxx commented Dec 12, 2025

Too many conflicts. Will open another PR.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +378 to +382
name: impl Into<Cow<'static, str>>,
memory: Cache<K, V, S, P>,
executor: ExecutorEnum,
metrics: Arc<Metrics>,
) -> Self {

Choose a reason for hiding this comment

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

P0 Badge Align StoreBuilder::new callers with new executor parameter

The constructor now takes four arguments (name, memory, executor, metrics), but several call sites still use the old three-argument form (e.g., foyer-storage/tests/storage_fuzzy_test.rs:110, foyer/src/hybrid/builder.rs:233, foyer-bench/src/main.rs:658). Building the workspace will fail with “expected 4 arguments, found 3” until those callers provide an ExecutorEnum.

Useful? React with 👍 / 👎.

Comment on lines 23 to 24
mod filter;
mod io;

Choose a reason for hiding this comment

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

P0 Badge Remove remaining references to deleted storage runtime types

The storage crate no longer declares a runtime module or RuntimeOptions, but downstream code still imports and uses them (e.g., foyer/src/prelude.rs:43 reexports Runtime/RuntimeOptions, foyer/src/hybrid/builder.rs configures runtime options, and examples/hybrid_full.rs constructs RuntimeOptions). With these symbols removed here, the workspace currently fails to compile with unresolved import/type errors.

Useful? React with 👍 / 👎.

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