forked from TrueCloudLab/frostfs-sdk-go
[#227] netmap: Do not export bucket weight calculator
`GetBucketWeight` is not usable outside placement context. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
86bdc670d5
commit
5bfdb64251
2 changed files with 3 additions and 3 deletions
|
@ -74,8 +74,8 @@ const (
|
|||
AttrContinent = "Continent"
|
||||
)
|
||||
|
||||
// GetBucketWeight computes weight for a Bucket.
|
||||
func GetBucketWeight(ns nodes, a aggregator, wf weightFunc) float64 {
|
||||
// calcBucketWeight computes weight for a Bucket.
|
||||
func calcBucketWeight(ns nodes, a aggregator, wf weightFunc) float64 {
|
||||
for i := range ns {
|
||||
a.Add(wf(ns[i]))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue