forked from TrueCloudLab/frostfs-node
[#504] reputation/intermediate: Add reading alpha
from global cfg
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
7319ca5a00
commit
bd6d5e7f7b
2 changed files with 1 additions and 15 deletions
|
@ -37,8 +37,6 @@ import (
|
|||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
const EigenTrustAlpha = 0.1
|
||||
|
||||
func initReputationService(c *cfg) {
|
||||
staticClient, err := client.NewStatic(
|
||||
c.cfgMorph.client,
|
||||
|
@ -149,9 +147,7 @@ func initReputationService(c *cfg) {
|
|||
|
||||
eigenTrustCalculator := eigentrustcalc.New(
|
||||
eigentrustcalc.Prm{
|
||||
AlphaProvider: intermediate.AlphaProvider{
|
||||
Alpha: EigenTrustAlpha,
|
||||
},
|
||||
AlphaProvider: c.cfgNetmap.wrapper,
|
||||
InitialTrustSource: intermediatereputation.InitialTrustSource{
|
||||
NetMap: nmSrc,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue