mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-28 09:10:19 +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
|
||
|
}
|
||
|
}
|