Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nisdas authored and vyzo committed Mar 31, 2021
1 parent 7644a65 commit eda6974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion score_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit eda6974

Please sign in to comment.