Skip to content

Commit

Permalink
Add the atomic concurrent implementation doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
liyanpeng5 committed Jan 4, 2018
1 parent d281d4e commit 016d042
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ JSON字符串显示的是反解的ID的各个组成部分的数值。

- 命令:

>curl http://localhost:10010/transtime?time=12235264
>http://localhost:8080/makeid?machine=1021&seq=0&time=94990103&genMethod=2&type=0&version=0
- 结果:

>**1138729511026688**
>**2305844108284681216**
## FAQ

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ else if (version == -1) {
madeId = idService.makeId(type, genMethod, machine, time, seq);
}
} else {
madeId = idService.makeId(version, type, genMethod, machine, time,
seq);
madeId = idService.makeId(version, type, genMethod, time,
seq, machine);
}

return madeId;
Expand Down

0 comments on commit 016d042

Please sign in to comment.