diff --git a/compress/api_customer.go b/compress/api_customer.go index 5b6916a..fb10691 100644 --- a/compress/api_customer.go +++ b/compress/api_customer.go @@ -19,7 +19,7 @@ func (o *compress) GetCredentials() (*Credential, error) { return nil, err } if obj.Response == "KO" { - return nil, fmt.Errorf("Error %s", obj.Message) + return nil, fmt.Errorf("error %s", obj.Message) } o.debugPrint(obj) // diff --git a/compress/compress.go b/compress/compress.go index 9a54147..70f9314 100644 --- a/compress/compress.go +++ b/compress/compress.go @@ -2,10 +2,10 @@ package compress import ( "fmt" + "io" + "github.com/go-resty/resty/v2" "github.com/minio/minio-go" - "io" - "net/url" ) type ICompress interface { @@ -57,7 +57,7 @@ func NewCompress(customerName, apiKey string, isDebug bool) (ICompress, error) { c.restClient.SetBaseURL(TNGRM_BASE_URL) c.restClient.SetDebug(isDebug) // - cred, err := c.GetCredentials() + /*cred, err := c.GetCredentials() if err != nil { return nil, err } @@ -77,7 +77,7 @@ func NewCompress(customerName, apiKey string, isDebug bool) (ICompress, error) { c.bucket = cred.S3Bucket if err != nil { return nil, err - } + }*/ return c, nil }