Fix CRC16 encode : string to bytes
* should use SafeEncoder.encode() instead of String.getBytes()
This commit is contained in:
@@ -59,7 +59,7 @@ public class JedisClusterCRC16 {
|
||||
}
|
||||
|
||||
public static int getCRC16(String key) {
|
||||
return getCRC16(key.getBytes());
|
||||
return getCRC16(SafeEncoder.encode(key));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user