Create your own GitHub profile
Sign up for your own profile on GitHub, the best place to host code, manage projects, and build software alongside 50 million developers.
Sign up
Pinned
78 contributions in the last year
Activity overview
Contributed to
NotFound9/interviewGuide,
Meituan-Dianping/Leaf,
awesome-tips/iOS-Tips
and 4 other
repositories

Contribution activity
May 2020
Created an issue in Meituan-Dianping/Leaf that received 4 comments
时间差过大,超过41位溢出,导致生成的id负数的问题
因为Leaf框架是沿用snowflake的位数分配, 最大41位时间差+10位的workID+12位序列化,但是由于snowflake是强制要求第一位为符号位0,否则生成的id转换为十进制后会是复试,但是Leaf项目中没有对时间差进行校验,当时间戳过大或者自定义的twepoch设置不当过小,…
4
comments