aergoio/aergo

View on GitHub
p2p/p2pcommon/peermeta.go

Summary

Maintainability
A
55 mins
Test Coverage
C
78%

Method PeerMeta.Equals has 9 return statements (exceeds 4 allowed).
Open

func (m PeerMeta) Equals(o PeerMeta) bool {
    if !types.IsSamePeerID(m.ID, o.ID) {
        return false
    }
    if m.Role != o.Role {
Severity: Major
Found in p2p/p2pcommon/peermeta.go - About 55 mins to fix

    There are no issues that match your filters.

    Category
    Status