explain logging and weight fixing
This commit is contained in:
parent
e1e95b9686
commit
e453385d5e
10 changed files with 95 additions and 14 deletions
|
|
@ -25,6 +25,10 @@ import (
|
|||
|
||||
var nextIteratorID uint64
|
||||
|
||||
func init() {
|
||||
atomic.StoreUint64(&nextIteratorID, 1)
|
||||
}
|
||||
|
||||
func NextUID() uint64 {
|
||||
return atomic.AddUint64(&nextIteratorID, 1) - 1
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue