mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-07 10:40:25 +08:00
[API节点]列表显示版本号、CPU、内存、状态等信息
This commit is contained in:
@@ -68,6 +68,9 @@ func (this *APINode) Start() {
|
||||
// 设置rlimit
|
||||
_ = utils.SetRLimit(1024 * 1024)
|
||||
|
||||
// 状态变更计时器
|
||||
go NewNodeStatusExecutor().Listen()
|
||||
|
||||
// 监听RPC服务
|
||||
logs.Println("[API_NODE]starting rpc ...")
|
||||
|
||||
@@ -136,6 +139,8 @@ func (this *APINode) Start() {
|
||||
}
|
||||
}
|
||||
|
||||
// HTTP接口
|
||||
|
||||
if !isListening {
|
||||
logs.Println("[API_NODE]the api node does have a listening address")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user