We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cae68b commit 6b7588aCopy full SHA for 6b7588a
sleep/handler.go
@@ -22,6 +22,10 @@ func init() {
22
// of time between those two figures
23
func Handle(req []byte) string {
24
25
+ if v := os.Getenv("Http_Path"); v == "/_/ready" {
26
+ return "ok"
27
+ }
28
+
29
if minV, ok := os.LookupEnv("Http_X_Min_Sleep"); ok && len(minV) > 0 {
30
if maxV, ok := os.LookupEnv("Http_X_Max_Sleep"); ok && len(maxV) > 0 {
31
minSleep, _ := time.ParseDuration(minV)
0 commit comments