Skip to content

Commit

Permalink
fix: handle nil reader
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Dec 18, 2024
1 parent 668fa2f commit 5121f7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions disperser/apiserver/server_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ func (s *DispersalServerV2) GetPaymentState(ctx context.Context, req *pb.GetPaym
onDemandPayment, err := s.meterer.ChainPaymentState.GetOnDemandPaymentByAccount(ctx, accountID)
if err != nil {
s.logger.Debug("failed to get ondemand payment, use zero value", "err", err, "accountID", accountID)
onchainCumulativePayment =
} else {

Check failure on line 321 in disperser/apiserver/server_v2.go

View workflow job for this annotation

GitHub Actions / Linter

syntax error: unexpected }, expected expression (typecheck)

Check failure on line 321 in disperser/apiserver/server_v2.go

View workflow job for this annotation

GitHub Actions / Linter

expected operand, found '}' (typecheck)

Check failure on line 321 in disperser/apiserver/server_v2.go

View workflow job for this annotation

GitHub Actions / Linter

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

Check failure on line 321 in disperser/apiserver/server_v2.go

View workflow job for this annotation

GitHub Actions / Linter

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

Check failure on line 321 in disperser/apiserver/server_v2.go

View workflow job for this annotation

GitHub Actions / Linter

syntax error: unexpected }, expected expression) (typecheck)
onchainCumulativePayment = onDemandPayment.CumulativePayment
}
Expand Down

0 comments on commit 5121f7c

Please sign in to comment.