|
@@ -3,6 +3,7 @@ package main
|
|
import (
|
|
import (
|
|
commonConfig "cicv-data-closedloop/kinglong/common/cfg"
|
|
commonConfig "cicv-data-closedloop/kinglong/common/cfg"
|
|
commonInit "cicv-data-closedloop/kinglong/common/init"
|
|
commonInit "cicv-data-closedloop/kinglong/common/init"
|
|
|
|
+ "cicv-data-closedloop/kinglong/common/log"
|
|
commonService "cicv-data-closedloop/kinglong/common/svc"
|
|
commonService "cicv-data-closedloop/kinglong/common/svc"
|
|
masterConfig "cicv-data-closedloop/kinglong/master/pkg/cfg"
|
|
masterConfig "cicv-data-closedloop/kinglong/master/pkg/cfg"
|
|
masterService "cicv-data-closedloop/kinglong/master/pkg/svc"
|
|
masterService "cicv-data-closedloop/kinglong/master/pkg/svc"
|
|
@@ -10,7 +11,9 @@ import (
|
|
)
|
|
)
|
|
|
|
|
|
func init() {
|
|
func init() {
|
|
|
|
+ // 初始化日志配置
|
|
runtime.GOMAXPROCS(1)
|
|
runtime.GOMAXPROCS(1)
|
|
|
|
+ log.InitLogConfig("kinglong-master")
|
|
commonInit.Init()
|
|
commonInit.Init()
|
|
// 初始化TCP连接,用于发送时间窗口到从节点
|
|
// 初始化TCP连接,用于发送时间窗口到从节点
|
|
masterConfig.InitTcpConfig()
|
|
masterConfig.InitTcpConfig()
|