aergoio/aergo

View on GitHub
p2p/raftsupport/snapshotsender.go

Summary

Maintainability
A
35 mins
Test Coverage
C
73%

Function readWireHSResp has 5 return statements (exceeds 4 allowed).
Open

func readWireHSResp(rd io.Reader) (resp types.SnapshotResponse, err error) {
    bytebuf := make([]byte, SnapRespHeaderLength)
    readn, err := p2putil.ReadToLen(rd, bytebuf)
    if err != nil {
        return
Severity: Major
Found in p2p/raftsupport/snapshotsender.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status