1234567891011121314151617181920212223242526272829303132 |
- package main
- import (
- //"github.com/sirupsen/logrus"
- "lc-smartX/lc"
- "lc-smartX/util/gopool"
- //"lc-smartX/util/gopool"
- //"net"
- //"time"
- //
- //"lc-smartX/util/gopool"
- "time"
- //
- //"lc-smartX/util/gopool"
- //"net"
- //"os"
- //"time"
- )
- func main() {
- gopool.SetCap(64)
- gopool.Go(lc.StartEventServer)
- //等事件服务先启动
- time.Sleep(1 * time.Second)
- is := &lc.IntersectionServer{
- Main: time.NewTicker(5 * time.Second), //主路状态回滚
- Sub: time.NewTicker(5 * time.Second), //支路状态回滚
- ReTicker: time.NewTicker(19 * time.Second), //重连
- }
- lc.StartSmartXServer(is)
- }
|