实现缓存策略的部分功能

This commit is contained in:
刘祥超
2020-10-04 14:30:42 +08:00
parent 7f6a0e41d8
commit 3b3bd8efab
17 changed files with 1751 additions and 2 deletions

View File

@@ -11,7 +11,6 @@ import (
"time"
)
var stop = make(chan bool)
var lastVersion = int64(-1)
var sharedNodeConfig *nodeconfigs.NodeConfig
@@ -52,6 +51,9 @@ func (this *Node) Start() {
// 设置rlimit
_ = utils.SetRLimit(1024 * 1024)
// 连接API
go NewAPIStream().Start()
// 启动端口
err = sharedListenerManager.Start(nodeConfig)
if err != nil {
@@ -59,7 +61,7 @@ func (this *Node) Start() {
}
// hold住进程
<-stop
select {}
}
// 读取API配置