From eda69749ab951c47cb3b2a26c32d17dda08eca3b Mon Sep 17 00:00:00 2001 From: nisdas Date: Wed, 31 Mar 2021 21:24:46 +0800 Subject: [PATCH] fix bug --- score_params.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/score_params.go b/score_params.go index 26f94ddb..8a4d2098 100644 --- a/score_params.go +++ b/score_params.go @@ -229,7 +229,7 @@ func (p *TopicScoreParams) validate() error { } // check P3 - if p.MeshMessageDeliveriesWeight > 0 || isInvalidNumber(p.MeshFailurePenaltyWeight) { + if p.MeshMessageDeliveriesWeight > 0 || isInvalidNumber(p.MeshMessageDeliveriesWeight) { return fmt.Errorf("invalid MeshMessageDeliveriesWeight; must be negative (or 0 to disable) and a valid number") } if p.MeshMessageDeliveriesWeight != 0 && (p.MeshMessageDeliveriesDecay <= 0 || p.MeshMessageDeliveriesDecay >= 1 || isInvalidNumber(p.MeshMessageDeliveriesDecay)) {