go-id-worker's People
Forkers
zhanglei jangocheng zhanghongming cxuhua carlziess oscersong007 itachi123456789 faster-snail isgasho coolkingzhang jhzlf gs02048 fgnna wuknet mgl-pub chengxiangdong caogenwang yundj zczju bean1129 honggangding socrates-greekgo-id-worker's Issues
sequeue不对
哭了😭
连续生成4097个id都是19位当生成4098个就成了18位
连续生成4097个id都是19位当生成4098个就成了18位
有问题算出来是负数
原因是你的时间应该%1000000,time.Now().UnixNano()这个是纳秒。
每次启动生成Id波动
定义的timestamp第一次生成和tilNextMillis生成的时间戳不在同一数量级上,定义timestamp是不是该/ int64(time.Millisecond)
连续生成4097个id都是19位当生成4098个就成了18位
连续生成4097个id都是19位当生成4098个就成了18位
data race test
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.