Closed terassyi closed 1 year ago
This PR contains the change based on https://github.com/cybozu-go/coil/pull/233.
I added a lastAllocIdx field in allocator to record the last used index. And when coil-controller allocates addresses, it picks next to lastAllocIdx.
lastAllocIdx
allocator
coil-controller
And I added some tests for this change.
Signed-off-by: terasihma tomoya-terashima@cybozu.co.jp
This PR contains the change based on https://github.com/cybozu-go/coil/pull/233.
I added a
lastAllocIdx
field inallocator
to record the last used index. And whencoil-controller
allocates addresses, it picks next tolastAllocIdx
.And I added some tests for this change.
Signed-off-by: terasihma tomoya-terashima@cybozu.co.jp