Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 182 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 182 Bytes

分布式雪花算法 目前使用zk进行worker机器id分配

errCh := make(chan error, 3)
sf := NewSfWorker(errCh,zkServer.WithServers([]string{"your host"}))
sf.NextID()
``