[#446] innerring: Rename server.Index to server.InnerRingIndex

With different indexes for inner ring list and alphabet list this
is the better naming.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-03-23 17:14:28 +03:00 committed by Alex Vanin
parent 80bfd08a47
commit cd21641dfc
5 changed files with 8 additions and 8 deletions

View file

@ -27,7 +27,7 @@ func (ap *Processor) selectContainersToAudit(epoch uint64) ([]*container.ID, err
return strings.Compare(containers[i].String(), containers[j].String()) < 0
})
ind := ap.irList.Index()
ind := ap.irList.InnerRingIndex()
irSize := ap.irList.InnerRingSize()
if ind < 0 || ind >= irSize {