Update handlers.go

This commit is contained in:
David Lick
2020-08-06 15:12:03 -04:00
committed by GitHub
parent a651b9cd73
commit 2d33e1c862
+1 -1
View File
@@ -53,7 +53,7 @@ func (s *Server) getData(w http.ResponseWriter, r *http.Request) {
return
}
// Sleep for a random amount of time up to 5 seconds.
// Sleep for a random amount of time up to 500 milliseconds.
time.Sleep(time.Duration(rand.Intn(500)) * time.Millisecond)
w.Write(bytes)