Update module name to github.com/fraktal/mev-beta and fix channel closing issues in pipeline stages
This commit is contained in:
@@ -7,11 +7,11 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/your-username/mev-beta/internal/config"
|
||||
"github.com/your-username/mev-beta/internal/logger"
|
||||
"github.com/your-username/mev-beta/internal/ratelimit"
|
||||
"github.com/your-username/mev-beta/pkg/market"
|
||||
"github.com/your-username/mev-beta/pkg/scanner"
|
||||
"github.com/fraktal/mev-beta/internal/config"
|
||||
"github.com/fraktal/mev-beta/internal/logger"
|
||||
"github.com/fraktal/mev-beta/internal/ratelimit"
|
||||
"github.com/fraktal/mev-beta/pkg/market"
|
||||
"github.com/fraktal/mev-beta/pkg/scanner"
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/core/types"
|
||||
"github.com/ethereum/go-ethereum/ethclient"
|
||||
@@ -58,9 +58,9 @@ func NewArbitrumMonitor(
|
||||
|
||||
// Create pipeline
|
||||
pipeline := market.NewPipeline(botCfg, logger, marketMgr, scanner)
|
||||
|
||||
// Add stages to pipeline
|
||||
pipeline.AddStage(market.TransactionDecoderStage(botCfg, logger, marketMgr))
|
||||
|
||||
// Add default stages
|
||||
pipeline.AddDefaultStages()
|
||||
|
||||
// Create fan manager
|
||||
fanManager := market.NewFanManager(
|
||||
@@ -174,11 +174,11 @@ func (m *ArbitrumMonitor) processBlock(ctx context.Context, blockNumber uint64)
|
||||
return fmt.Errorf("failed to get block %d: %v", blockNumber, err)
|
||||
}
|
||||
|
||||
// Process transactions using pipeline
|
||||
// Process transactions through the pipeline
|
||||
transactions := block.Transactions()
|
||||
|
||||
// Process transactions through the pipeline
|
||||
if err := m.pipeline.ProcessTransactions(ctx, transactions); err != nil {
|
||||
// Process transactions through the pipeline with block number and timestamp
|
||||
if err := m.pipeline.ProcessTransactions(ctx, transactions, blockNumber, block.Time()); err != nil {
|
||||
m.logger.Error(fmt.Sprintf("Pipeline processing error: %v", err))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user