Directory API Gets + Caching versions

This commit is contained in:
2023-12-29 13:42:02 -06:00
parent 105ab109d1
commit f2354d0cc9
4 changed files with 121 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ func DoRequestNoRead(req *http.Request) (*http.Response, error) {
// Log the request
log.Debug().Str("method", req.Method).Str("host", req.Host).Str("path", req.URL.Path).Msg("Request")
// Send the request (while acquiring timings)
start := time.Now()
resp, err := client.Do(req)
duration := time.Since(start)