Skip to content

fix(redis): migrate to read_routing_strategy API#277

Open
AndreyErmilov wants to merge 1 commit into
nextfrom
fix/redis-deprecation
Open

fix(redis): migrate to read_routing_strategy API#277
AndreyErmilov wants to merge 1 commit into
nextfrom
fix/redis-deprecation

Conversation

@AndreyErmilov
Copy link
Copy Markdown
Contributor

Replace the deprecated ClusterClientBuilder::read_from_replicas() call with read_routing_strategy(RandomReplicaStrategy), introduced in redis 1.2.0. Bump the minimum redis dependency to 1.2 so downstream users resolve a version that ships the new API.

Fixes -D warnings clippy failures on every open PR once cargo resolves redis 1.2.0 or newer.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 19, 2026

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.16%. Comparing base (7e77f7f) to head (7670423).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
hitbox-redis/src/backend.rs 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             next     #277      +/-   ##
==========================================
- Coverage   84.20%   84.16%   -0.05%     
==========================================
  Files         136      136              
  Lines        9435     9440       +5     
==========================================
  Hits         7945     7945              
- Misses       1490     1495       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Replace the deprecated `ClusterClientBuilder::read_from_replicas()` call
with `read_routing_strategy(RandomReplicaStrategy)`, introduced in redis
1.2.0. Bump the minimum `redis` dependency to 1.2 so downstream users
resolve a version that ships the new API.

Fixes `-D warnings` clippy failures on every open PR once cargo resolves
redis 1.2.0 or newer.
@AndreyErmilov AndreyErmilov force-pushed the fix/redis-deprecation branch from 27c8e7c to 7670423 Compare April 19, 2026 10:35
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