From d50b299ce93da3a59a150111313f1914ca5d61d8 Mon Sep 17 00:00:00 2001 From: Shaswot Subedi Date: Tue, 16 Apr 2024 14:17:41 +0100 Subject: [PATCH] break the loop when there is a response --- internal/provider/client_node.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/provider/client_node.go b/internal/provider/client_node.go index 0284a5b..9c15012 100644 --- a/internal/provider/client_node.go +++ b/internal/provider/client_node.go @@ -60,6 +60,8 @@ func (c *SquaredUpClient) GetNodes(dataSourceId string, nodeName string, allowNu } gremlinQueryResults = response.GremlinQueryResults + break + } return gremlinQueryResults, nil