mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
remove eventID
This commit is contained in:
parent
8c1f60aa8b
commit
a3d9f8aab2
16
pkg/storage/unified/resource/rv.go
Normal file
16
pkg/storage/unified/resource/rv.go
Normal file
@ -0,0 +1,16 @@
|
||||
package resource
|
||||
|
||||
import "sync/atomic"
|
||||
|
||||
// The kubernetes storage.Interface tests expect this to be a sequential progression
|
||||
// SnowflakeIDs do not pass the off-the-shelf k8s tests, although they provide totally
|
||||
// acceptable values.
|
||||
type NextResourceVersion = func() int64
|
||||
|
||||
func newResourceVersionCounter(start int64) NextResourceVersion {
|
||||
var counter atomic.Int64
|
||||
_ = counter.Swap(start + 1)
|
||||
return func() int64 {
|
||||
return counter.Add(1)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user