moleculer-go/moleculer

View on GitHub
transit/tcp/tcp-transporter.go

Summary

Maintainability
A
40 mins
Test Coverage

Method TCPTransporter.Publish has 6 return statements (exceeds 4 allowed).
Open

func (transporter *TCPTransporter) Publish(command, nodeID string, message moleculer.Payload) {
    transporter.logger.Debug("TCPTransporter.Publish() command: " + command + " to nodeID: " + nodeID)
    if command == "DISCOVER" {
        if transporter.udpServer != nil {
            transporter.udpServer.BroadcastDiscoveryMessage()
Severity: Major
Found in transit/tcp/tcp-transporter.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status