Skip to content

Commit

Permalink
support customize twepoch
Browse files Browse the repository at this point in the history
  • Loading branch information
thelight1 committed Oct 8, 2019
1 parent 0e810c0 commit 0dc819c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public SnowflakeIDGenImpl(String zkAddress, int port, long twepoch) {
final String ip = Utils.getIp();
SnowflakeZookeeperHolder holder = new SnowflakeZookeeperHolder(ip, String.valueOf(port), zkAddress);
LOGGER.info("twepoch:{} ,ip:{} ,zkAddress:{} port:{}", twepoch, ip, zkAddress, port);
initFlag = holder.init();
boolean initFlag = holder.init();
if (initFlag) {
workerId = holder.getWorkerID();
LOGGER.info("START SUCCESS USE ZK WORKERID-{}", workerId);
Expand Down

0 comments on commit 0dc819c

Please sign in to comment.