moleculer-go/moleculer

View on GitHub
registry/registry.go

Summary

Maintainability
B
C
+3 hrs
Test Coverage

File registry.go has 518 lines of code (exceeds 500 allowed). Consider refactoring.
New

package registry

import (
    "errors"
    "fmt"
Severity: Minor
Found in registry/registry.go - About 2 hrs to fix

    Method ServiceRegistry.RemoteNodeInfoReceived has 64 lines of code (exceeds 50 allowed). Consider refactoring.
    New

    func (registry *ServiceRegistry) RemoteNodeInfoReceived(message moleculer.Payload) {
        registry.nodeReceivedMutex.Lock()
        defer registry.nodeReceivedMutex.Unlock()
    
        msgMap := message.RawMap()
    Severity: Minor
    Found in registry/registry.go - About 1 hr to fix

      Method ServiceRegistry.remoteNodeInfoReceived has 64 lines of code (exceeds 50 allowed). Consider refactoring.
      Fixed

      Severity: Minor
      Found in registry/registry.go - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status