mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
优化网络连接Id生成规则
This commit is contained in:
@@ -74,7 +74,7 @@ func (tcpService *TcpService) genId() uint64 {
|
||||
|
||||
|
||||
func GetNodeId(agentId uint64) int {
|
||||
return int(agentId>>54)
|
||||
return int(agentId>>50)
|
||||
}
|
||||
|
||||
func (tcpService *TcpService) OnInit() error{
|
||||
|
||||
Reference in New Issue
Block a user