style: format code with gofmt
This commit is contained in:
@@ -68,7 +68,7 @@ type ArbitrageDetectionEngine struct {
|
||||
// CRITICAL FIX: Backpressure for opportunity handlers
|
||||
// Prevents unbounded goroutine creation under high opportunity rate
|
||||
handlerSemaphore chan struct{} // Limits concurrent handler executions
|
||||
maxHandlers int // Maximum concurrent handler goroutines
|
||||
maxHandlers int // Maximum concurrent handler goroutines
|
||||
}
|
||||
|
||||
// DetectionConfig contains all configuration parameters for the arbitrage detection engine.
|
||||
@@ -159,8 +159,8 @@ func NewArbitrageDetectionEngine(
|
||||
isRunning: false,
|
||||
stopChan: make(chan struct{}),
|
||||
opportunityChan: make(chan *types.ArbitrageOpportunity, 1000), // Buffered channel
|
||||
maxHandlers: 10, // CRITICAL FIX: Limit to 10 concurrent handlers
|
||||
handlerSemaphore: make(chan struct{}, 10), // CRITICAL FIX: Backpressure semaphore
|
||||
maxHandlers: 10, // CRITICAL FIX: Limit to 10 concurrent handlers
|
||||
handlerSemaphore: make(chan struct{}, 10), // CRITICAL FIX: Backpressure semaphore
|
||||
}
|
||||
|
||||
// Set default configuration if not provided
|
||||
|
||||
Reference in New Issue
Block a user