moleculer-go/moleculer

View on GitHub
registry/registry.go

Summary

Maintainability
B
5 hrs
Test Coverage

ServiceRegistry has 30 methods (exceeds 20 allowed). Consider refactoring.
Open

type ServiceRegistry struct {
    logger                *log.Entry
    transit               transit.Transit
    localNode             moleculer.Node
    nodes                 *NodeCatalog
Severity: Minor
Found in registry/registry.go - About 3 hrs to fix

    Method ServiceRegistry.remoteNodeInfoReceived has 59 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func (registry *ServiceRegistry) remoteNodeInfoReceived(message moleculer.Payload) {
        registry.nodeReceivedMutex.Lock()
        defer registry.nodeReceivedMutex.Unlock()
        nodeID := message.Get("sender").String()
        services := message.Get("services").MapArray()
    Severity: Minor
    Found in registry/registry.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status