mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
TcpService新增设置内存池接口
This commit is contained in:
@@ -270,4 +270,8 @@ func (tcpService *TcpService) GetConnNum() int {
|
||||
connNum := len(tcpService.mapClient)
|
||||
tcpService.mapClientLocker.Unlock()
|
||||
return connNum
|
||||
}
|
||||
}
|
||||
|
||||
func (server *TcpService) SetNetMempool(mempool network.INetMempool){
|
||||
server.tcpServer.SetNetMempool(mempool)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user