From d772a703da53c899a2b0a75096c5dc8e9578b6b7 Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 27 Jan 2026 09:50:07 +0100 Subject: [PATCH] adjust useless line --- tools/nats_caller.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/nats_caller.go b/tools/nats_caller.go index edbc542..74f31f4 100644 --- a/tools/nats_caller.go +++ b/tools/nats_caller.go @@ -17,7 +17,7 @@ import ( type NATSMethod int var meths = []string{"remove execution", "create execution", "discovery", - "workflow event", "peer discovery", "peer detection"} + "workflow event", "peer discovery"} const ( REMOVE_EXECUTION NATSMethod = iota @@ -25,7 +25,6 @@ const ( DISCOVERY WORKFLOW_EVENT PEER_DISCOVERY - PEER_DETECTION ) func (n NATSMethod) String() string { @@ -34,7 +33,7 @@ func (n NATSMethod) String() string { // NameToMethod returns the NATSMethod enum value from a string func NameToMethod(name string) NATSMethod { - for _, v := range [...]NATSMethod{REMOVE_EXECUTION, CREATE_EXECTUTION, DISCOVERY, WORKFLOW_EVENT, PEER_DISCOVERY, PEER_DETECTION} { + for _, v := range [...]NATSMethod{REMOVE_EXECUTION, CREATE_EXECTUTION, DISCOVERY, WORKFLOW_EVENT, PEER_DISCOVERY} { if strings.Contains(strings.ToLower(v.String()), strings.ToLower(name)) { return v } @@ -81,7 +80,7 @@ func (s *natsCaller) ListenNats(execs map[NATSMethod]func(map[string]string)) { } // SetNATSPub sets a message to the NATS server -func (o *natsCaller) SetNATSPub(dataName string, method NATSMethod, data interface{}) string { +func (o *natsCaller) SetNATSPub(method NATSMethod, data interface{}) string { if config.GetConfig().NATSUrl == "" { return " -> NATS_SERVER is not set" }