Skip to content

Commit

Permalink
use float division, not integer
Browse files Browse the repository at this point in the history
Co-authored-by: Geoff Stuart <geoff.vball@gmail.com>
Signed-off-by: F. Eugene Aumson <feuGeneA@users.noreply.github.com>
  • Loading branch information
feuGeneA and geoff-vball authored Aug 21, 2024
1 parent 22eabca commit 9ec2b44
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions signature-aggregator/aggregator/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,8 @@ func (s *SignatureAggregator) CreateSignedMessage(
s.metrics.ConnectedStakeWeightPercentage.WithLabelValues(

Check failure on line 124 in signature-aggregator/aggregator/aggregator.go

View workflow job for this annotation

GitHub Actions / golangci

expected 1 expression (typecheck)
signingSubnet.String(),
).Set(
float64(
connectedValidators.ConnectedWeight /
connectedValidators.TotalValidatorWeight,
float64(connectedValidators.ConnectedWeight) /
float64(connectedValidators.TotalValidatorWeight),
),
)

Check failure on line 130 in signature-aggregator/aggregator/aggregator.go

View workflow job for this annotation

GitHub Actions / golangci

syntax error: unexpected ), expected expression (typecheck)

Check failure on line 130 in signature-aggregator/aggregator/aggregator.go

View workflow job for this annotation

GitHub Actions / golangci

expected operand, found ')' (typecheck)

Check failure on line 130 in signature-aggregator/aggregator/aggregator.go

View workflow job for this annotation

GitHub Actions / golangci

syntax error: unexpected ), expected expression) (typecheck)

Check failure on line 130 in signature-aggregator/aggregator/aggregator.go

View workflow job for this annotation

GitHub Actions / golangci

syntax error: unexpected ), expected expression) (typecheck)

Check failure on line 130 in signature-aggregator/aggregator/aggregator.go

View workflow job for this annotation

GitHub Actions / golangci

syntax error: unexpected ), expected expression) (typecheck)

Check failure on line 130 in signature-aggregator/aggregator/aggregator.go

View workflow job for this annotation

GitHub Actions / Unit tests

syntax error: unexpected ), expected expression

Expand Down

0 comments on commit 9ec2b44

Please sign in to comment.