Commit 2885a2b0 authored by haoyanbin's avatar haoyanbin

1

parent 1afe6d33
......@@ -43,12 +43,12 @@ func main() {
})
//自动结束会话
ticker := time.NewTicker(time.Second * 10)
go func() {
for range ticker.C {
pool.SetEnd()
}
}()
//ticker := time.NewTicker(time.Second * 10)
//go func() {
// for range ticker.C {
// pool.SetEnd()
// }
//}()
mux := http.NewServeMux()
mux.HandleFunc("/", serveHome)
......
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