aergoio/aergo

View on GitHub
consensus/impl/raftv2/p2p.go

Summary

Maintainability
A
40 mins
Test Coverage
F
0%

Function GetClusterInfo has 6 return statements (exceeds 4 allowed).
Open

func GetClusterInfo(hs *component.ComponentHub, bestHash []byte) (*Cluster, *types.HardStateInfo, error) {
    logger.Info().Msg("try getclusterinfo to p2p")

    replyC := make(chan *message.GetClusterRsp)
    hs.Tell(message.P2PSvc, &message.GetCluster{BestBlockHash: bestHash, ReplyC: replyC})
Severity: Major
Found in consensus/impl/raftv2/p2p.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status