moleculer-go/moleculer

View on GitHub
registry/nodeCatalog.go

Summary

Maintainability
A
35 mins
Test Coverage

Method NodeCatalog.GetNodeByAddress has 5 return statements (exceeds 4 allowed).
Open

func (catalog *NodeCatalog) GetNodeByAddress(address string) moleculer.Node {

    host, portString, err := net.SplitHostPort(address)
    if err != nil {
        catalog.logger.Error("GetNodeByAddress() Error parsing address: ", address)
Severity: Major
Found in registry/nodeCatalog.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status