forked from TrueCloudLab/frostfs-node
[#392] ir: Remove bitsize from IR indices
There is no need to specify that IR indices are 32 bits in size. Change return types of `Indexer` interface methods in audit and alphabet packages. Support interface changes in `Server` implementation. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
645bef9de9
commit
397c3b6757
4 changed files with 9 additions and 9 deletions
|
@ -25,14 +25,14 @@ func (s *Server) IsActive() bool {
|
|||
|
||||
// Index is a getter for a global index of node in inner ring list. Negative
|
||||
// index means that node is not in the inner ring list.
|
||||
func (s *Server) Index() int32 {
|
||||
return s.innerRingIndex.Load()
|
||||
func (s *Server) Index() int {
|
||||
return int(s.innerRingIndex.Load())
|
||||
}
|
||||
|
||||
// InnerRingSize is a getter for a global size of inner ring list. This value
|
||||
// paired with inner ring index.
|
||||
func (s *Server) InnerRingSize() int32 {
|
||||
return s.innerRingSize.Load()
|
||||
func (s *Server) InnerRingSize() int {
|
||||
return int(s.innerRingSize.Load())
|
||||
}
|
||||
|
||||
func (s *Server) voteForSidechainValidator(validators []keys.PublicKey) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue