fvbock / endless

Zero downtime restarts for go servers (Drop in replacement for http.ListenAndServe)
MIT License
4.05k stars 342 forks source link

why sleep 1 second in your multi-port example? #33

Closed bruceauyeung closed 8 years ago

bruceauyeung commented 8 years ago

https://github.com/fvbock/endless/blob/master/examples/multi_port.go

it sleeps 1 second before endless.ListenAndServe in the first goroutine. why ?

fvbock commented 8 years ago

i can't remember any more - probably wanted to have the first routine serve later than the second to test something... ¯\_(ツ)_/¯

anyways: it's not required or serves any function to get multiple servers running and restarting.