Commit 5daa8d66 authored by ligaishun's avatar ligaishun

更新自动解锁等待节点启动

parent d5fd564c
......@@ -52,7 +52,10 @@ func main() {
}
tlog.Info("[info] start http server listening ", "port",endPoint)
app.Unlock()
go func(){
time.Sleep(time.Second*10)
app.Unlock()
}()
server.ListenAndServe()
select {}
// If you want Graceful Restart, you need a Unix system and download github.com/fvbock/endless
......
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