timout fx
This commit is contained in:
parent
dc42eda2fe
commit
62617e2b6b
|
|
@ -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)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue