Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-pubsub
Commits
eda69749
Commit
eda69749
authored
Mar 31, 2021
by
nisdas
Committed by
vyzo
Mar 31, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
7644a650
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
score_params.go
score_params.go
+1
-1
No files found.
score_params.go
View file @
eda69749
...
@@ -229,7 +229,7 @@ func (p *TopicScoreParams) validate() error {
...
@@ -229,7 +229,7 @@ func (p *TopicScoreParams) validate() error {
}
}
// check P3
// check P3
if
p
.
MeshMessageDeliveriesWeight
>
0
||
isInvalidNumber
(
p
.
Mesh
FailurePenalty
Weight
)
{
if
p
.
MeshMessageDeliveriesWeight
>
0
||
isInvalidNumber
(
p
.
Mesh
MessageDeliveries
Weight
)
{
return
fmt
.
Errorf
(
"invalid MeshMessageDeliveriesWeight; must be negative (or 0 to disable) and a valid number"
)
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
))
{
if
p
.
MeshMessageDeliveriesWeight
!=
0
&&
(
p
.
MeshMessageDeliveriesDecay
<=
0
||
p
.
MeshMessageDeliveriesDecay
>=
1
||
isInvalidNumber
(
p
.
MeshMessageDeliveriesDecay
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment