Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsitrin committed May 15, 2024
1 parent 302e506 commit d4bfa25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mempool/v1/mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func (txmp *TxMempool) removeTxByKey(key types.TxKey) error {
// removeTxByElement removes the specified transaction element from the mempool.
// The caller must hold txmp.mtx exclusively.
func (txmp *TxMempool) removeTxByElement(elt *clist.CElement) {
w := elt.Value.(*WrappedTx)
w, _ := elt.Value.(*WrappedTx)
delete(txmp.txByKey, w.tx.Key())
delete(txmp.txBySender, w.sender)
txmp.txs.Remove(elt)
Expand Down
2 changes: 1 addition & 1 deletion settlement/dymension/dymension.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func (d *HubClient) PostBatch(batch *types.Batch, daClient da.Client, daResult *
return fmt.Errorf("subscription cancelled")

case event := <-subscription.Out():
eventData := event.Data().(*settlement.EventDataNewBatchAccepted)
eventData, _ := event.Data().(*settlement.EventDataNewBatchAccepted)
if eventData.EndHeight != batch.EndHeight {
d.logger.Info("Received event for a different batch, ignoring.", "event", eventData)
continue
Expand Down

0 comments on commit d4bfa25

Please sign in to comment.