Skip to content

Commit

Permalink
fix: transmitter queuing error wrap (#763)
Browse files Browse the repository at this point in the history
  • Loading branch information
aalu1418 authored Jun 27, 2024
1 parent 60e0e43 commit 63de1a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/solana/transmitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ func (c *Transmitter) Transmit(

// pass transmit payload to tx manager queue
c.lggr.Debugf("Queuing transmit tx: state (%s) + transmissions (%s)", c.stateID.String(), c.transmissionsID.String())
err = c.txManager.Enqueue(c.stateID.String(), tx)
return fmt.Errorf("error on Transmit.txManager.Enqueue: %w", err)
if err = c.txManager.Enqueue(c.stateID.String(), tx); err != nil {
return fmt.Errorf("error on Transmit.txManager.Enqueue: %w", err)
}
return nil
}

func (c *Transmitter) LatestConfigDigestAndEpoch(
Expand Down

0 comments on commit 63de1a0

Please sign in to comment.