Skip to content

Commit

Permalink
Remove test sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
iknite committed Feb 19, 2019
1 parent e44a81d commit 7f0d6aa
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions api/apihttp/apihttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ package apihttp
import (
"bytes"
"encoding/json"
"math/rand"
"net/http"
"time"

Expand Down Expand Up @@ -59,9 +58,6 @@ func HealthCheckHandler(w http.ResponseWriter, r *http.Request) {
timer3 := prometheus.NewTimer(metrics.Qed_exampleSummary)
defer timer3.ObserveDuration()

// Do something here that takes time.
time.Sleep(time.Duration(rand.NormFloat64()*10000+50000) * time.Microsecond)

result := HealthCheckResponse{
Version: 0,
Status: "ok",
Expand Down

0 comments on commit 7f0d6aa

Please sign in to comment.