aergoio/aergo

View on GitHub
p2p/subproto/getblock.go

Summary

Maintainability
A
1 hr
Test Coverage
D
69%

Method blockRequestHandler.handleBlkReq has 63 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (bh *blockRequestHandler) handleBlkReq(msg p2pcommon.Message, data *types.GetBlockRequest) {
    defer bh.release()
    remotePeer := bh.peer

    requestID := msg.ID()
Severity: Minor
Found in p2p/subproto/getblock.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status