We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 858d25b commit 4ef778fCopy full SHA for 4ef778f
2 files changed
src/main/java/com/featureprobe/sdk/server/FPUser.java
@@ -60,6 +60,9 @@ public boolean containAttr(String name) {
60
* @return key
61
*/
62
public String getKey() {
63
+ if (key == null) {
64
+ this.key = String.valueOf(System.nanoTime());
65
+ }
66
return key;
67
}
68
src/main/java/com/featureprobe/sdk/server/model/Split.java
@@ -35,8 +35,7 @@ public Split(List<List<List<Integer>>> distribution) {
35
36
37
public HitResult findIndex(FPUser user, String toggleKey) {
38
- String hashKey = user.getKey() != null ? user.getKey() : String.valueOf(System.nanoTime());
39
- user.stableRollout(hashKey);
+ String hashKey = user.getKey();
40
if (StringUtils.isNotBlank(bucketBy)) {
41
if (user.containAttr(bucketBy)) {
42
hashKey = user.getAttr(bucketBy);
0 commit comments