From 60970e235d52873d5805844997d9350617d07170 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Thu, 7 Nov 2024 23:57:12 +0300 Subject: [PATCH] Meremoved unused variable --- remote/accountservice.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/remote/accountservice.go b/remote/accountservice.go index 41f1c89..ded9781 100644 --- a/remote/accountservice.go +++ b/remote/accountservice.go @@ -216,17 +216,17 @@ func doRequest(ctx context.Context, req *http.Request, rcpt any) (*api.OKRespons func doCustodialRequest(ctx context.Context, req *http.Request, rcpt any) (*api.OKResponse, error) { req.Header.Set("X-GE-KEY", config.CustodialAPIKey) - logRequestDetails(req, config.CustodialAPIKey) + logRequestDetails(req) return doRequest(ctx, req, rcpt) } func doDataRequest(ctx context.Context, req *http.Request, rcpt any) (*api.OKResponse, error) { req.Header.Set("X-GE-KEY", config.DataAPIKey) - logRequestDetails(req, config.CustodialAPIKey) + logRequestDetails(req) return doRequest(ctx, req, rcpt) } -func logRequestDetails(req *http.Request, apiKey string) { +func logRequestDetails(req *http.Request) { var bodyBytes []byte contentType := req.Header.Get("Content-Type") if req.Body != nil {