mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
10 lines
151 B
Go
10 lines
151 B
Go
|
package internal
|
||
|
|
||
|
func MakeIncrementingIndexCounter() func() (int, error) {
|
||
|
idx := -1
|
||
|
return func() (int, error) {
|
||
|
idx += 1
|
||
|
return idx, nil
|
||
|
}
|
||
|
}
|