()
| 84 | } |
| 85 | |
| 86 | func NewNode() *Node { |
| 87 | nodeInstance = &Node{ |
| 88 | sock: gosock.NewTmpSock(teaconst.ProcessName), |
| 89 | oldMaxThreads: -1, |
| 90 | oldMaxCPU: -1, |
| 91 | updatingServerMap: map[int64]*serverconfigs.ServerConfig{}, |
| 92 | } |
| 93 | return nodeInstance |
| 94 | } |
| 95 | |
| 96 | // Test 检查配置 |
| 97 | func (this *Node) Test() error { |
no outgoing calls