We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d8562d commit b3d61a4Copy full SHA for b3d61a4
redis/src/cluster.rs
@@ -383,7 +383,7 @@ impl ClusterConnection {
383
match RoutingInfo::for_routable(cmd) {
384
Some(RoutingInfo::Random) => {
385
let mut rng = thread_rng();
386
- Ok(addr_for_slot(rng.gen_range(0..SLOT_SIZE) as u16, 0)?)
+ Ok(addr_for_slot(rng.gen_range(0..SLOT_SIZE), 0)?)
387
}
388
Some(RoutingInfo::MasterSlot(slot)) => Ok(addr_for_slot(slot, 0)?),
389
Some(RoutingInfo::ReplicaSlot(slot)) => Ok(addr_for_slot(slot, 1)?),
0 commit comments