nuts-foundation/nuts-node

View on GitHub
network/transport/v2/handlers.go

Summary

Maintainability
A
2 hrs
Test Coverage
A
90%

Method protocol.handleTransactionSet has 62 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (p *protocol) handleTransactionSet(_ context.Context, connection grpc.Connection, envelope *Envelope) error {
    subEnvelope := envelope.Message.(*Envelope_TransactionSet)
    msg := envelope.GetTransactionSet()
    cid := conversationID(msg.ConversationID)
    data := handlerData{}
Severity: Minor
Found in network/transport/v2/handlers.go - About 1 hr to fix

    Method protocol.handleTransactionPayloadQuery has 54 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func (p *protocol) handleTransactionPayloadQuery(ctx context.Context, connection grpc.Connection, envelope *Envelope) error {
        msg := envelope.GetTransactionPayloadQuery()
        peer := connection.Peer()
    
        log.Logger().
    Severity: Minor
    Found in network/transport/v2/handlers.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status