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) {
6060 * @return key
6161 */
6262 public String getKey () {
63+ if (key == null ) {
64+ this .key = String .valueOf (System .nanoTime ());
65+ }
6366 return key ;
6467 }
6568
Original file line number Diff line number Diff line change @@ -35,8 +35,7 @@ public Split(List<List<List<Integer>>> distribution) {
3535 }
3636
3737 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 ();
4039 if (StringUtils .isNotBlank (bucketBy )) {
4140 if (user .containAttr (bucketBy )) {
4241 hashKey = user .getAttr (bucketBy );
You can’t perform that action at this time.
0 commit comments