From 81cf9887cd58b791d9da35ccf8981a6764108622 Mon Sep 17 00:00:00 2001 From: iacore Date: Wed, 28 Aug 2024 12:29:25 +0000 Subject: [PATCH] fix type errors --- audit/logging.go | 1 - core/requests.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/audit/logging.go b/audit/logging.go index ab6af47..b749eb8 100644 --- a/audit/logging.go +++ b/audit/logging.go @@ -1,7 +1,6 @@ package audit import ( - "fmt" "log" "net/http" "os" diff --git a/core/requests.go b/core/requests.go index 7831f38..b74766b 100644 --- a/core/requests.go +++ b/core/requests.go @@ -25,7 +25,7 @@ func API_GET(context context.Context, url string, token string) (SimpleHTTPRespo start_time := time.Now() res, resp, err := _API_GET(context, url, token) end_time := time.Now() - audit.LogAPIRoundTrip(audit.APIPerformance{resp, err, "GET", url, token, res.Body, start_time, end_time}) + audit.LogAPIRoundTrip(audit.APIPerformance{Response: resp, Error: err, Method: "GET", Url: url, Token: token, Body: res.Body, StartTime: start_time, EndTime: end_time}) if err != nil { return SimpleHTTPResponse{}, fmt.Errorf("While GET %s: %w", url, err) }