mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-18 12:20:24 +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
|
||
|
}
|
||
|
}
|