mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
fix type errors
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package audit
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user