|
|
@@ -147,7 +147,8 @@ public class RedisExpiredAndWorkListener extends KeyExpirationEventMessageListen
|
|
|
String key = BaseConstants.REDIS_LOCK + ""+beaconStr[1];
|
|
|
log.info("》》》》》》》》》》》》》》》》》》》》key:"+key);
|
|
|
try {
|
|
|
- Thread.sleep(Long.parseLong((Math.random()*50+50)+""));
|
|
|
+ int timeOut = (int)(Math.random()*50)+50;
|
|
|
+ Thread.sleep(Long.parseLong(timeOut+""));
|
|
|
} catch (InterruptedException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|