ethergo/submitter/chain_queue.go
Method txSubmitterImpl.chainPendingQueue
has 70 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (t *txSubmitterImpl) chainPendingQueue(parentCtx context.Context, chainID *big.Int, txes []db.TX) (err error) {
ctx, span := t.metrics.Tracer().Start(parentCtx, "submitter.ChainQueue", trace.WithAttributes(
attribute.String("chain_id", chainID.String()),
))
defer func() {
Method chainQueue.bumpTX
has 63 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (c *chainQueue) bumpTX(parentCtx context.Context, ogTx db.TX) (err error) {
if !c.isBumpIntervalElapsed(ogTx) {
c.addToReprocessQueue(ogTx)
return nil
}
Method chainQueue.bumpTX
has 7 return statements (exceeds 4 allowed). Open
Open
func (c *chainQueue) bumpTX(parentCtx context.Context, ogTx db.TX) (err error) {
if !c.isBumpIntervalElapsed(ogTx) {
c.addToReprocessQueue(ogTx)
return nil
}
Method txSubmitterImpl.chainPendingQueue
has 5 return statements (exceeds 4 allowed). Open
Open
func (t *txSubmitterImpl) chainPendingQueue(parentCtx context.Context, chainID *big.Int, txes []db.TX) (err error) {
ctx, span := t.metrics.Tracer().Start(parentCtx, "submitter.ChainQueue", trace.WithAttributes(
attribute.String("chain_id", chainID.String()),
))
defer func() {