From 2e5eb833741d433186fb192a73df6e410e927a81 Mon Sep 17 00:00:00 2001 From: Nithunikzz Date: Wed, 28 Feb 2024 11:14:50 +0530 Subject: [PATCH] trivy changes --- agent/kubviz/k8smetrics_agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/kubviz/k8smetrics_agent.go b/agent/kubviz/k8smetrics_agent.go index 8fd89963..068360eb 100644 --- a/agent/kubviz/k8smetrics_agent.go +++ b/agent/kubviz/k8smetrics_agent.go @@ -100,7 +100,7 @@ func main() { } if nc == nil { - nc, _ = nats.Connect(natsurl, nats.Name("K8s Metrics"), nats.Token(token)) + nc, err = nats.Connect(natsurl, nats.Name("K8s Metrics"), nats.Token(token)) events.CheckErr(err) } js, err := nc.JetStream()