consensus/impl/sbp/sbp.go
SimpleBlockFactory
has 25 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type SimpleBlockFactory struct {
*component.ComponentHub
consensus.ChainDB
jobQueue chan interface{}
blockInterval time.Duration
Avoid deeply nested control flow statements. Open
Open
} else if err != nil {
logger.Info().Err(err).Msg("failed to produce block")
continue
}