服务器共享状态
| 31 | |
| 32 | /// 服务器共享状态 |
| 33 | pub struct ServerState { |
| 34 | pub config: Arc<AppConfig>, |
| 35 | pub registrar: Arc<RegistrarService>, |
| 36 | pub router: Arc<Router>, |
| 37 | pub transaction_mgr: Arc<TransactionManager>, |
| 38 | /// 连接映射:peer_addr -> ConnectionState |
| 39 | connections: RwLock<HashMap<SocketAddr, ConnectionState>>, |
| 40 | } |
| 41 | |
| 42 | impl ServerState { |
| 43 | /// 根据分机号查找写入通道 |
nothing calls this directly
no outgoing calls
no test coverage detected