aergoio/aergo

View on GitHub
cmd/polaris/server/peerstate.go

Summary

Maintainability
A
35 mins
Test Coverage
F
53%

Method pingChecker.DoCall has 5 return statements (exceeds 4 allowed).
Open

func (pc *pingChecker) DoCall(done chan<- interface{}) {
    var pingResp *types.Ping = nil
    defer func() {
        if pingResp != nil {
            atomic.StoreInt32(&pc.contFail, 0)
Severity: Major
Found in cmd/polaris/server/peerstate.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status