Skip to content

Commit

Permalink
Merge pull request Meituan-Dianping#1 from Meituan-Dianping/master
Browse files Browse the repository at this point in the history
update fork from src
  • Loading branch information
qinshuang1998 authored May 29, 2019
2 parents 7ee2b8f + ece3faa commit 4ce9a00
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public SnowflakeIDGenImpl(String zkAddress, int port) {
Preconditions.checkArgument(workerId >= 0 && workerId <= maxWorkerId, "workerID must gte 0 and lte 1023");
}

@Override
public synchronized Result get(String key) {
long timestamp = timeGen();
if (timestamp < lastTimestamp) {
Expand Down

0 comments on commit 4ce9a00

Please sign in to comment.