Removed unused variables in client package

This commit is contained in:
David Allen 2024-08-11 14:24:08 -06:00
parent d930c4136f
commit a6c95ef646
Signed by: towk
GPG key ID: 793B2924A49B3A3F

View file

@ -10,14 +10,9 @@ import (
"github.com/OpenCHAMI/magellan/internal/util" "github.com/OpenCHAMI/magellan/internal/util"
) )
var (
Host = "http://localhost:27779"
BaseEndpoint = "/hsm/v2"
)
type SmdClient struct { type SmdClient struct {
*http.Client *http.Client
Host string URI string
Xname string Xname string
} }
@ -26,7 +21,7 @@ func (c SmdClient) Name() string {
} }
func (c SmdClient) RootEndpoint(endpoint string) 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 { func (c SmdClient) GetClient() *http.Client {