1
0
mirror of synced 2025-12-08 22:28:16 +08:00

!8 更新readme文件,优化vlang的lock

This commit is contained in:
微希夷
2021-04-12 20:25:56 +08:00
committed by yitter
parent 123508fe14
commit ddaa1d628a
11 changed files with 163 additions and 121 deletions

View File

@@ -25,9 +25,8 @@ make install
//snowdrift.ini
snowdrift.Method=1 //1 漂移算法 2 传统算法
snowdrift.BaseTime=1582136402000
snowdrift.WorkerId=1 //默认workerid
snowdrift.WorkerIdNum=1 //支持的WorkerId数,默认1不超过(-1L << snowdrift.WorkerIdBitLength) ^ -1L
snowdrift.WorkerIdBitLength=6
snowdrift.WorkerId=1 //默认workerid支持参数传递改变实际使用的值范围1~(-1L << snowdrift.WorkerIdBitLength) ^ -1L
snowdrift.WorkerIdBitLength=6 //WorkerId数,默认6。
snowdrift.SeqBitLength=6 //自增序号位数
snowdrift.MaxSeqNumber=0
snowdrift.MinSeqNumber=0