mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 12:07:17 +00:00
10 lines
116 B
Go
10 lines
116 B
Go
|
package ethdb
|
||
|
|
||
|
import "sync/atomic"
|
||
|
|
||
|
var dbID = new(uint64)
|
||
|
|
||
|
func id() uint64 {
|
||
|
return atomic.AddUint64(dbID, 1)
|
||
|
}
|