Commit 1938a10b authored by Nico Baruna Putra's avatar Nico Baruna Putra

FIX :: remove timer sleep

parent bf35b9e9
...@@ -69,15 +69,12 @@ func checkApi() { ...@@ -69,15 +69,12 @@ func checkApi() {
if err != nil { if err != nil {
Native() Native()
fmt.Print(err.Error()) fmt.Print(err.Error())
time.Sleep(5 * time.Second)
//sendMail("API not response") //sendMail("API not response")
//os.Exit(1) //os.Exit(1)
} else if response.StatusCode != 200 { } else if response.StatusCode != 200 {
fmt.Println(response.StatusCode) fmt.Println(response.StatusCode)
Native() Native()
//sendMail("API not response") //sendMail("API not response")
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment