Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redis-rs code cleanup: keep a single async runtime: tokio #2459

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

eifrah-aws
Copy link
Contributor

@eifrah-aws eifrah-aws commented Oct 15, 2024

  • Removed dead code for async-std
  • Fixed redis-rs test so they could be run with cargo test
  • Changed the default features to include: "tokio-comp", "tokio-rustls-comp", "connection-manager", "cluster", "cluster-async"
  • Fixed glide-core flaky test

Next step:

Remove the tokio-* feature set and simply assume that it is always enabled.
The goal is to remove all the "C" style ifdef coding style from the redis-rs code base and make it more readable and maintainable.

Copy link
Collaborator

@avifenesh avifenesh left a comment

Choose a reason for hiding this comment

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

Looks good!

- Removed dead code for `async-std`
- Fixed `redis-rs` tests so they could be run with a simple `cargo test` command
- Changed the default features to include: "tokio-comp", "tokio-rustls-comp", "connection-manager", "cluster", "cluster-async"
- Fixed a flaky `glide-core` test

Signed-off-by: Eran Ifrah <eifrah@amazon.com>
@eifrah-aws eifrah-aws changed the title redis-rs code cleanup: keep a single Runtime: tokio redis-rs code cleanup: keep a single async runtime: tokio Oct 15, 2024
@eifrah-aws eifrah-aws marked this pull request as ready for review October 15, 2024 20:31
@eifrah-aws eifrah-aws requested a review from a team as a code owner October 15, 2024 20:31
@eifrah-aws eifrah-aws merged commit 15d57b2 into valkey-io:release-1.2 Oct 16, 2024
6 checks passed
format!("sending {} messages", config.number_of_requests_sent),
);

tokio::time::sleep(tokio::time::Duration::from_millis(100)).await;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need this tokio::time::sleep call?

avifenesh pushed a commit to avifenesh/valkey-glide that referenced this pull request Oct 21, 2024
…-io#2459)

Keep a single Runtime: `tokio`

- Removed dead code for `async-std`
- Fixed `redis-rs` tests so they could be run with a simple `cargo test` command
- Changed the default features to include: "tokio-comp", "tokio-rustls-comp", "connection-manager", "cluster", "cluster-async"
- Fixed a flaky `glide-core` test

Signed-off-by: Eran Ifrah <eifrah@amazon.com>
avifenesh pushed a commit to avifenesh/valkey-glide that referenced this pull request Oct 21, 2024
…-io#2459)

Keep a single Runtime: `tokio`

- Removed dead code for `async-std`
- Fixed `redis-rs` tests so they could be run with a simple `cargo test` command
- Changed the default features to include: "tokio-comp", "tokio-rustls-comp", "connection-manager", "cluster", "cluster-async"
- Fixed a flaky `glide-core` test

Signed-off-by: Eran Ifrah <eifrah@amazon.com>
Muhammad-awawdi-amazon pushed a commit to Muhammad-awawdi-amazon/valkey-glide that referenced this pull request Oct 22, 2024
…-io#2459)

Keep a single Runtime: `tokio`

- Removed dead code for `async-std`
- Fixed `redis-rs` tests so they could be run with a simple `cargo test` command
- Changed the default features to include: "tokio-comp", "tokio-rustls-comp", "connection-manager", "cluster", "cluster-async"
- Fixed a flaky `glide-core` test

Signed-off-by: Eran Ifrah <eifrah@amazon.com>
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.

3 participants