Skip to content

Commit

Permalink
moar errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chowbao committed Jan 8, 2025
1 parent 66ac412 commit 5f7e801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ingest/processors/trade.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func findTradeSellPrice(t ingest.LedgerTransaction, operationIndex int32, trade
}

key := xdr.LedgerKey{}
if err := key.SetOffer(trade.SellerId(), uint64(trade.OfferId())); err != nil {
if err = key.SetOffer(trade.SellerId(), uint64(trade.OfferId())); err != nil {
return 0, 0, errors.Wrap(err, "Could not create offer ledger key")
}
var change ingest.Change
Expand Down Expand Up @@ -304,7 +304,7 @@ func findLatestOperationChange(t ingest.LedgerTransaction, operationIndex int32,

func findPoolFee(t ingest.LedgerTransaction, operationIndex int32, poolID xdr.PoolId) (fee uint32, err error) {
key := xdr.LedgerKey{}
if err := key.SetLiquidityPool(poolID); err != nil {
if err = key.SetLiquidityPool(poolID); err != nil {
return 0, errors.Wrap(err, "Could not create liquidity pool ledger key")
}
var change ingest.Change
Expand Down

0 comments on commit 5f7e801

Please sign in to comment.