Fantom-foundation/go-lachesis

View on GitHub
gossip/consensus_callbacks.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method Service.processEvent has 59 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (s *Service) processEvent(realEngine Consensus, e *inter.Event) error {
    // s.engineMu is locked here
    if s.stopped {
        return errStopped
    }
Severity: Minor
Found in gossip/consensus_callbacks.go - About 1 hr to fix

    Method Service.processEvent has 6 return statements (exceeds 4 allowed).
    Open

    func (s *Service) processEvent(realEngine Consensus, e *inter.Event) error {
        // s.engineMu is locked here
        if s.stopped {
            return errStopped
        }
    Severity: Major
    Found in gossip/consensus_callbacks.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status