摘要:
1 import logging 2 import time 3 4 # 64位ID的划分 5 WORKER_ID_BITS = 3 6 DATACENTER_ID_BITS = 5 7 SEQUENCE_BITS = 12 8 9 # 最大取值计算 10 MAX_WORKER_ID = -1 ^ 阅读全文
摘要:
1 import logging 2 import time 3 4 # 64位ID的划分 5 WORKER_ID_BITS = 3 6 DATACENTER_ID_BITS = 5 7 SEQUENCE_BITS = 12 8 9 # 最大取值计算 10 MAX_WORKER_ID = -1 ^ 阅读全文
|