aergoio/aergo

View on GitHub
syncer/syncerservice.go

Summary

Maintainability
A
1 hr
Test Coverage
D
64%

Method Syncer.handleMessage has 59 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (syncer *Syncer) handleMessage(inmsg interface{}) {
    defer syncer.RecoverSyncerSelf()

    if !syncer.verifySeq(inmsg) {
        return
Severity: Minor
Found in syncer/syncerservice.go - About 1 hr to fix

    Method Syncer.handleFinderResult has 5 return statements (exceeds 4 allowed).
    Open

    func (syncer *Syncer) handleFinderResult(msg *message.FinderResult) error {
        logger.Debug().Msg("syncer received finder result message")
    
        if err := chain.TestDebugger.Check(chain.DEBUG_SYNCER_CRASH, 0, nil); err != nil {
            chain.TestDebugger.Unset(chain.DEBUG_SYNCER_CRASH)
    Severity: Major
    Found in syncer/syncerservice.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status