timout fx

This commit is contained in:
merdan 2022-09-06 18:49:08 +05:00
parent dc42eda2fe
commit 62617e2b6b
1 changed files with 2 additions and 1 deletions

View File

@ -105,10 +105,11 @@ func Start(w http.ResponseWriter, route *http.Request) {
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
elapsed := time.Since(start)
log.Printf("end import took %s", elapsed)
http.Error(w, fmt.Sprintf("end import took %s", elapsed), http.StatusOK)
}