update
This commit is contained in:
@@ -13,7 +13,7 @@ import java.util.Date;
|
|||||||
|
|
||||||
public class MessageShardingUtil {
|
public class MessageShardingUtil {
|
||||||
private static SpinLock mLock = new SpinLock();
|
private static SpinLock mLock = new SpinLock();
|
||||||
private static int rotateId = 0;
|
private static volatile int rotateId = 0;
|
||||||
private static int nodeId = 0;
|
private static int nodeId = 0;
|
||||||
|
|
||||||
private static int rotateIdWidth = 15;
|
private static int rotateIdWidth = 15;
|
||||||
|
|||||||
Reference in New Issue
Block a user