From a6c95ef646109365b219efeaf7003e768615daec Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Sun, 11 Aug 2024 14:24:08 -0600 Subject: [PATCH] Removed unused variables in client package --- pkg/client/smd.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pkg/client/smd.go b/pkg/client/smd.go index 2befba0..ca3865e 100644 --- a/pkg/client/smd.go +++ b/pkg/client/smd.go @@ -10,14 +10,9 @@ import ( "github.com/OpenCHAMI/magellan/internal/util" ) -var ( - Host = "http://localhost:27779" - BaseEndpoint = "/hsm/v2" -) - type SmdClient struct { *http.Client - Host string + URI string Xname string } @@ -26,7 +21,7 @@ func (c SmdClient) Name() string { } func (c SmdClient) RootEndpoint(endpoint string) string { - return fmt.Sprintf("/hsm/v2/%s%s", Host, endpoint) + return fmt.Sprintf("%s/hsm/v2%s", c.URI, endpoint) } func (c SmdClient) GetClient() *http.Client {