fix type errors

This commit is contained in:
iacore
2024-08-28 12:29:25 +00:00
parent f053f0962d
commit 81cf9887cd
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -1,7 +1,6 @@
package audit
import (
"fmt"
"log"
"net/http"
"os"
+1 -1
View File
@@ -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)
}