File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/main/java/com/featureprobe/sdk/server Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,9 @@ public boolean containAttr(String name) {
60
60
* @return key
61
61
*/
62
62
public String getKey () {
63
+ if (key == null ) {
64
+ this .key = String .valueOf (System .nanoTime ());
65
+ }
63
66
return key ;
64
67
}
65
68
Original file line number Diff line number Diff line change @@ -35,8 +35,7 @@ public Split(List<List<List<Integer>>> distribution) {
35
35
}
36
36
37
37
public HitResult findIndex (FPUser user , String toggleKey ) {
38
- String hashKey = user .getKey () != null ? user .getKey () : String .valueOf (System .nanoTime ());
39
- user .stableRollout (hashKey );
38
+ String hashKey = user .getKey ();
40
39
if (StringUtils .isNotBlank (bucketBy )) {
41
40
if (user .containAttr (bucketBy )) {
42
41
hashKey = user .getAttr (bucketBy );
You can’t perform that action at this time.
0 commit comments